1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Do the _XOPEN_SOURCE/_SVID_SOURCE things only on Linux.

This commit is contained in:
hniksic 2000-11-15 10:10:01 -08:00
parent 1a5c5a006a
commit cc3b6eb3e4
2 changed files with 14 additions and 4 deletions

View 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

View 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 */