summaryrefslogtreecommitdiff
path: root/package/cifs-utils/patches/patch-cifscreds_c
blob: 23135e2313f38951f4ccec6251f8c7b2f483660f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cifs-utils-6.3.orig/cifscreds.c	2014-01-09 17:19:53.000000000 +0100
+++ cifs-utils-6.3/cifscreds.c	2014-05-06 13:52:11.778306692 +0200
@@ -27,7 +27,13 @@
 #include <string.h>
 #include <ctype.h>
 #include <keyutils.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 <errno.h>
 #include "cifskey.h"
 #include "mount.h"