diff options
author | Milan P. Stanić <mps@arvanta.net> | 2018-12-11 19:08:00 +0100 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-05 08:28:58 +0000 |
commit | f04039399781204786e376f730b8849aea59dcd2 (patch) | |
tree | 9b8a9c3a0e690d8ae57888e8f7c054c4c50301c4 /testing/curlftpfs/540-consistent-feature-flag.patch | |
parent | 20380256b171efa7c66a16fbf75d842922e46f27 (diff) | |
download | aports-f04039399781204786e376f730b8849aea59dcd2.tar.bz2 aports-f04039399781204786e376f730b8849aea59dcd2.tar.xz |
testing/curlftpfs: new aport
Diffstat (limited to 'testing/curlftpfs/540-consistent-feature-flag.patch')
-rw-r--r-- | testing/curlftpfs/540-consistent-feature-flag.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/curlftpfs/540-consistent-feature-flag.patch b/testing/curlftpfs/540-consistent-feature-flag.patch new file mode 100644 index 0000000000..71a37fecd0 --- /dev/null +++ b/testing/curlftpfs/540-consistent-feature-flag.patch @@ -0,0 +1,60 @@ +Author: Vincent Bernat +Subject: ensure consistent use of _XOPEN_SOURCE + +See bug #748143 + +Index: curlftpfs-0.9.2/Makefile.am +=================================================================== +--- curlftpfs-0.9.2.orig/Makefile.am ++++ curlftpfs-0.9.2/Makefile.am +@@ -5,7 +5,7 @@ DIST_SUBDIRS = $(SUBDIRS) tests + + LIBICONV = @LIBICONV@ + +-AM_CPPFLAGS = -DFUSE_USE_VERSION=26 ++AM_CPPFLAGS = -DFUSE_USE_VERSION=26 -D_XOPEN_SOURCE=600 + AM_LDFLAGS = $(LIBICONV) + + bin_PROGRAMS = curlftpfs +Index: curlftpfs-0.9.2/ftpfs-ls.c +=================================================================== +--- curlftpfs-0.9.2.orig/ftpfs-ls.c ++++ curlftpfs-0.9.2/ftpfs-ls.c +@@ -6,12 +6,6 @@ + See the file COPYING. + */ + +-#ifndef __FreeBSD__ +-#define _XOPEN_SOURCE 600 +-#else +-#define _XOPEN_SOURCE +-#endif +- + #include <time.h> + #include <string.h> + #include <sys/types.h> +Index: curlftpfs-0.9.2/tests/Makefile.am +=================================================================== +--- curlftpfs-0.9.2.orig/tests/Makefile.am ++++ curlftpfs-0.9.2/tests/Makefile.am +@@ -2,7 +2,7 @@ EXTRA_DIST = run_tests.sh + + noinst_PROGRAMS = ftpfs-ls_unittest + +-AM_CPPFLAGS = -DFUSE_USE_VERSION=25 ++AM_CPPFLAGS = -DFUSE_USE_VERSION=25 -D_XOPEN_SOURCE=600 + + ftpfs_ls_unittest_SOURCES = ftpfs-ls_unittest.c + if FUSE_OPT_COMPAT +Index: curlftpfs-0.9.2/tests/ftpfs-ls_unittest.c +=================================================================== +--- curlftpfs-0.9.2.orig/tests/ftpfs-ls_unittest.c ++++ curlftpfs-0.9.2/tests/ftpfs-ls_unittest.c +@@ -6,7 +6,6 @@ + See the file COPYING. + */ + +-#define _XOPEN_SOURCE 600 /* glibc2 needs this */ + #include <time.h> + #include <stdlib.h> + #include <stdio.h> |