summaryrefslogtreecommitdiff
path: root/package/cifs-utils/patches/patch-cifs_upcall_c
blob: 50619a2b2baaca36ea7f00178b3f93df39df7b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cifs-utils-6.1.orig/cifs.upcall.c	2013-07-02 21:13:33.000000000 +0200
+++ cifs-utils-6.1/cifs.upcall.c	2013-10-28 07:33:27.000000000 +0100
@@ -30,7 +30,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
 #ifdef HAVE_KRB5_KRB5_H
 #include <krb5/krb5.h>
 #elif defined(HAVE_KRB5_H)