summaryrefslogtreecommitdiff
path: root/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch')
-rw-r--r--net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch b/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch
new file mode 100644
index 000000000000..e2426d3fc25f
--- /dev/null
+++ b/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch
@@ -0,0 +1,14 @@
+ftp-ls.c:319:22: error: call to undeclared library function 'strdup' with type 'char *(const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+ cur.linkto = xstrdup (p + 4);
+ ^
+--- a/src/ftp-ls.c
++++ b/src/ftp-ls.c
+@@ -29,7 +29,7 @@ file, but you are not obligated to do so. If you do not wish to do
+ so, delete this exception statement from your version. */
+
+ #include "config.h"
+-#define _XOPEN_SOURCE
++#define _XOPEN_SOURCE 600
+ #include <time.h>
+ #include <stdio.h>
+ #include <stdlib.h>