]> sjero.net Git - wget/blobdiff - src/config.h.in
[svn] A bunch of new features:
[wget] / src / config.h.in
index 0e8b2b4c7b33107b6cb19e1cb79582229e502f4c..ed200e3259529fb37619c261d01dcd46198b44c0 100644 (file)
@@ -101,6 +101,9 @@ char *alloca ();
 /* Define if you have the uname function.  */
 #undef HAVE_UNAME
 
+/* Define if you have a working version of mmap.  */
+#undef HAVE_MMAP
+
 /* Define if you have the gethostname function.  */
 #undef HAVE_GETHOSTNAME
 
@@ -194,4 +197,25 @@ char *alloca ();
 /* Define to 1 if ANSI function prototypes are usable.  */
 #undef PROTOTYPES
 
+/* Debian says:
+
+   to get prototype for strptime, we need this  (taken from lftp)
+   #ifdef __linux__
+   #define __USE_XOPEN 1
+   #endif
+
+   But I don't think that's right.  The __USE_XOPEN thing is an
+   internal glibc2 thing that gets defined in features.h.  From
+   reading that file carefully, I think we need something like this
+   incantation to get the kind of features we use.
+
+   However, testing Wget under Solaris showed that compilation of
+   connect.c chokes because of the _XOPEN_SOURCE definition.  So I'm
+   disabling it.  If anyone understands this maze, please help!  */
+
+#ifdef __linux__
+# define _XOPEN_SOURCE 500
+# define _SVID_SOURCE
+#endif
+
 #endif /* CONFIG_H */