--- cifs-utils-6.1.orig/getcifsacl.c	2013-07-02 21:13:33.000000000 +0200
+++ cifs-utils-6.1/getcifsacl.c	2013-10-28 07:33:27.000000000 +0100
@@ -24,7 +24,13 @@
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
+#ifdef HAVE_GNU_GETOPT_LONG
 #include <getopt.h>
+#else
+#include "gnu_getopt.h"
+#define getopt_long gnu_getopt_long
+#define option gnu_option
+#endif
 #include <stdint.h>
 #include <stdbool.h>
 #include <unistd.h>