mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Do the namespace tweaks only on systems we know about.
This commit is contained in:
parent
a37e71d3d6
commit
b5788b5eb7
@ -1,3 +1,13 @@
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* utils.c (read_file): Cast MAP_FAILED to char *. Enforced by
|
||||
Digital Unix cc.
|
||||
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* config.h.in: Oops, do the namespace tweaks only on systems we
|
||||
know about.
|
||||
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* hash.c: Include <string.h>.
|
||||
|
@ -200,10 +200,30 @@ char *alloca ();
|
||||
/* Define if all libs needed for ssl support are existing */
|
||||
#undef HAVE_SSL
|
||||
|
||||
/* First a gambit to see whether we're on Solaris. We'll
|
||||
need it below. */
|
||||
#ifdef __sun
|
||||
# ifdef __SVR4
|
||||
# define solaris
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* 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. */
|
||||
the header files and break compilation in _verY_ non-obvious ways.
|
||||
Because of that, we define them only on architectures we know
|
||||
about. */
|
||||
|
||||
#undef NAMESPACE_TWEAKS
|
||||
|
||||
#ifdef solaris
|
||||
# define NAMESPACE_TWEAKS
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
# define NAMESPACE_TWEAKS
|
||||
#endif
|
||||
|
||||
#ifdef NAMESPACE_TWEAKS
|
||||
|
||||
/* Request the "Unix 98 compilation environment". */
|
||||
#define _XOPEN_SOURCE 500
|
||||
@ -217,4 +237,6 @@ char *alloca ();
|
||||
#define _SVID_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
|
||||
#endif /* NAMESPACE_TWEAKS */
|
||||
|
||||
#endif /* CONFIG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user