mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Specify "compilation environment" that works for Linux
and Solaris. Published in <sxs8zlezpsu.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
6382983f9c
commit
4bc1d37ccf
@ -1,3 +1,8 @@
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* config.h.in: Define "compilation environment" options that work
|
||||
under Linux and Solaris. To be reviewed on other OS'es.
|
||||
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c (gethttp): Prepend literal newline with `\n\'.
|
||||
|
@ -197,28 +197,24 @@ 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
|
||||
|
||||
/* Define if all libs needed for ssl support are existing */
|
||||
#undef HAVE_SSL
|
||||
|
||||
/* The following several lines can be very dangerous; they can cripple
|
||||
the header files and break compilation in _verY_ non-obvious ways. If
|
||||
compilation fails mysteriously and the errors are reported in
|
||||
system headers, try commenting these out. */
|
||||
|
||||
/* Request the "Unix 98 compilation environment". */
|
||||
#define _XOPEN_SOURCE 500
|
||||
|
||||
/* For Solaris: request everything else that is available and doesn't
|
||||
conflict with the above. */
|
||||
#define __EXTENSIONS__
|
||||
|
||||
/* For Linux: request features of 4.3BSD and SVID (System V Interface
|
||||
Definition). */
|
||||
#define _SVID_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
|
||||
#endif /* CONFIG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user