/* 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
/* Define if you have the uname function. */
#undef HAVE_UNAME
+/* Define if you have a working version of mmap. */
+#undef HAVE_MMAP
+
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME
/* Define to 1 if ANSI function prototypes are usable. */
#undef PROTOTYPES
-/* Debian says:
+/* Define if all libs needed for ssl support are existing */
+#undef HAVE_SSL
- to get prototype for strptime, we need this (taken from lftp)
- #ifdef __linux__
- #define __USE_XOPEN 1
- #endif
+/* First a gambit to see whether we're on Solaris. We'll
+ need it below. */
+#ifdef __sun
+# ifdef __SVR4
+# define solaris
+# endif
+#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. Without testing it, I can only hope that this won't
- screw things up on other, non-glibc2 systems. */
+/* The following several lines can be very dangerous; they can cripple
+ 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
+
+/* 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 /* NAMESPACE_TWEAKS */
#endif /* CONFIG_H */