|
|
9d8ae5e |
Build with -D_XOPEN_SOURCE for a declaration of strptime in <time.h>.
|
|
|
9d8ae5e |
This avoids build failures with future compilers which do not support
|
|
|
9d8ae5e |
implicit function declarations.
|
|
|
9d8ae5e |
|
|
|
9d8ae5e |
We cannout build with -D_GNU_SOURCE as the sources contain a defintion
|
|
|
9d8ae5e |
of basename which does not match the GNU prototype.
|
|
|
9d8ae5e |
|
|
|
9d8ae5e |
Submitted upstream: <https://sourceforge.net/p/wput/patches/24/>
|
|
|
9d8ae5e |
|
|
|
9d8ae5e |
diff --git a/src/Makefile.in b/src/Makefile.in
|
|
|
9d8ae5e |
index e7c4c431f50984ec..348807fb9df5bb86 100644
|
|
|
9d8ae5e |
--- a/src/Makefile.in
|
|
|
9d8ae5e |
+++ b/src/Makefile.in
|
|
|
9d8ae5e |
@@ -5,7 +5,8 @@ prefix=@prefix@
|
|
|
9d8ae5e |
bindir=@bindir@
|
|
|
9d8ae5e |
localedir=$(prefix)/share/locale
|
|
|
9d8ae5e |
CC=@CC@
|
|
|
9d8ae5e |
-CFLAGS= @CFLAGS@ -DLOCALEDIR=\"$(localedir)\" @GNUTLS_CFLAGS@
|
|
|
9d8ae5e |
+CFLAGS= @CFLAGS@ -D_DEFAULT_SOURCE -D_XOPEN_SOURCE \
|
|
|
9d8ae5e |
+ -DLOCALEDIR=\"$(localedir)\" @GNUTLS_CFLAGS@
|
|
|
9d8ae5e |
LIBS=@LIBINTL@ @LIBS@ @GNUTLS_LIBS@
|
|
|
9d8ae5e |
EXE=../wput
|
|
|
9d8ae5e |
GETOPT=@GETOPT@
|