]> sjero.net Git - wget/blobdiff - src/config.h.in
[svn] Commit various hash table changes:
[wget] / src / config.h.in
index 8d3b46625d7e60cab504503f775ad35a0105ee18..33e8aa538101c9f7a4aa309feb528022381d7b14 100644 (file)
@@ -50,6 +50,9 @@ char *alloca ();
 /* Define to empty if the keyword does not work.  */
 #undef const
 
+/* Define to empty or __inline__ or __inline.  */
+#undef inline
+
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
 #undef size_t
 
@@ -200,10 +203,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 +240,6 @@ char *alloca ();
 #define _SVID_SOURCE
 #define _BSD_SOURCE
 
+#endif /* NAMESPACE_TWEAKS */
+
 #endif /* CONFIG_H */