]> sjero.net Git - wget/commitdiff
[svn] Do the _XOPEN_SOURCE/_SVID_SOURCE things only on Linux.
authorhniksic <devnull@localhost>
Wed, 15 Nov 2000 18:10:01 +0000 (10:10 -0800)
committerhniksic <devnull@localhost>
Wed, 15 Nov 2000 18:10:01 +0000 (10:10 -0800)
src/ChangeLog
src/config.h.in

index 79ed0a3ea9a9d6819d58f9604968ef87188cec55..1b9f4a0237dcf9a6fcd5f1403c5298f8978d28c2 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-15  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * config.h.in: Do the _XOPEN_SOURCE and _SVID_SOURCE things only
+       on Linux.
+
 2000-11-12  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * host.c (realhost): Add HOST to the list with quality==0 only if
index 709b979b8e893ba3b910dc3f1c18ce47c7381e4b..2038acdefed00d282acfd784535777aeb0f226ce 100644 (file)
@@ -204,10 +204,15 @@ char *alloca ();
    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.  Without testing it, I can only hope that this won't
-   screw things up on other, non-glibc2 systems.  */
+   incantation to get the kind of features we use.
 
-#define _XOPEN_SOURCE 500
-#define _SVID_SOURCE
+   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 */