diff options
author | Marco d'Itri <md@linux.it> | 2009-04-12 05:55:21 +0200 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:37 +0100 |
commit | b3164a2b0f56bbba158422ca564bedd9dd0abfb8 (patch) | |
tree | cd87766e8645bc874bd5ea589a1e51ed64078bb6 /config.h | |
parent | ba38b34886f25c3448c2215e35220683a5bb7010 (diff) | |
download | whois-b3164a2b0f56bbba158422ca564bedd9dd0abfb8.tar.gz |
Imported Debian version 4.7.33v4.7.33
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 33 |
1 files changed, 28 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* Program version */ -#define VERSION "4.7.32" +#define VERSION "4.7.33" /* Configurable features */ @@ -31,9 +31,9 @@ #endif /* needs unistd.h */ -#ifdef _ISO_CPP_14882_1998 -/* Solaris 8 and better. What else? */ +#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L # define HAVE_GETADDRINFO +# define HAVE_REGEXEC #endif #if defined __APPLE__ && defined __MACH__ @@ -50,10 +50,33 @@ # endif #endif -#if defined _POSIX2_VERSION -# define HAVE_REGEXEC +/* Unknown versions of Solaris */ +#if defined __SVR4 && defined __sun +# define HAVE_SHA_CRYPT #endif +/* FIXME: which systems lack this? */ +#define HAVE_GETTIMEOFDAY + +/* + * Please send patches to correctly ignore old releases which lack a RNG + * and add more systems which have one. + */ +#ifdef RANDOM_DEVICE +#elif defined __GLIBC__ \ + || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \ + /* AIX >= 5.2? */ \ + || defined _AIX52 \ + /* HP-UX >= B.11.11.09? */ \ + || defined __hpux \ + /* OS X: */ \ + || (defined __APPLE__ && defined __MACH__) \ + /* Solaris >= 9 (this is >= 7): */ \ + || (defined __SVR4 && defined __sun && defined SUSv2) \ + /* Tru64 UNIX >= 5.1B? */ \ + || defined __osf +# define RANDOM_DEVICE "/dev/urandom" +#endif #ifdef ENABLE_NLS # ifndef NLS_CAT_NAME |