summaryrefslogtreecommitdiff
path: root/package/cifs-utils/patches/patch-cifscreds_c
blob: 0548e515fe025c62aa5cbd6df8d6028205f39a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cifs-utils-6.1.orig/cifscreds.c	2013-07-02 21:13:33.000000000 +0200
+++ cifs-utils-6.1/cifscreds.c	2013-10-28 07:33:27.000000000 +0100
@@ -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 "mount.h"
 #include "resolve_host.h"