3 #ifndef CONFIG_PORTABILITY_H
4 #define CONFIG_PORTABILITY_H
14 /* Have standard C headers. */
17 /* Preserve 2.0 interface with this definition */
20 /* Define to `int' if <sys/types.h> doesn't define. */
23 /* Define if you have the alarm function. */
26 /* Define if you have inet_ntoa */
29 /* Define if you have inet_ntoa */
32 /* Define if you have gettimeofday */
33 #undef HAVE_GETTIMEOFDAY
35 /* Define if you have gethostname. Some OSes doesn't have the definition
36 * in the include: define it here to avoid warning message. */
37 #undef HAVE_GETHOSTNAME
38 #ifdef HAVE_GETHOSTNAME
43 /* Define if you have uname */
46 /* Define if you have gethostbyname */
47 #undef HAVE_GETHOSTBYNAME
49 /* Define if you have gethostbyaddr */
50 #undef HAVE_GETHOSTBYADDR
52 /* Define if you have gethostbyaddr */
53 #undef HAVE_GETHOSTBYADDR_R
55 /* Define if you have the getrusage function. */
58 /* Define if you have the sqrt function. */
61 /* Define if we are going to use SIGALRM for our purposes */
62 #undef USE_ALARM_SIGNAL
64 /* Define if you have the sighold function. */
67 /* Define if you have the sigrelse function. */
70 /* Define if you have the siginterrupt function. */
71 #undef HAVE_SIGINTERRUPT
73 /* Define if you have the statvfs function. */
76 /* Define if you have the sys/vfs.h header. */
79 /* Define if you have the math.h header. */
82 /* Define if you have the inttypes.h header. */
83 #undef HAVE_INTTYPES_H
85 /* Define if you have the declaration of uint32_t. */
87 /* I would love to use UINT32_T but not with autoconf 2.13 */
88 /*#ifdef HAVE_UINT32_T
89 * # ifdef HAVE_INTTYPES_H
90 * # include <inttypes.h>
92 * typedef uint32_t IPAddress;
94 * typedef unsigned long IPAddress;
96 /* kludge to be sure we have uint32_t */
97 #ifdef HAVE_INTTYPES_H
98 # include <inttypes.h>
105 /* Define if you have the sysconf function. */
108 /* Define if you have the strnlen function. */
111 /* Define if you have the fileno function. */
114 /* Define to the type pointed to by the third parameter of getpeername(). */
117 /* Define to the (char *) version of the NWS sources. */
120 /* Define as the path to the `uptime' program. */
123 /* Define as the path to the `vmstat' program. */
126 /* in some realloc()s, realloc(ptr, 0) != free(ptr) */
127 #undef REALLOC_NOT_POSIX
129 /* do we have the pthread header? (and hopefully pthread support) */
130 #undef HAVE_PTHREAD_H
131 #ifdef HAVE_PTHREAD_H
139 #undef WITH_NETLOGGER
144 #define MALLOC(size) malloc ((size)==0?1:(size))
153 #ifdef REALLOC_NOT_POSIX
154 #define REALLOC(ptr,size) (((size > 0)?((ptr == NULL)?malloc(size):\
155 realloc(ptr,size)):((ptr == NULL)?NULL:(free(ptr),NULL))))
157 #define REALLOC(ptr,size) realloc(ptr,size)
164 #endif /* CONFIG_PORTABILITY_H */