diff --git a/acinclude.m4 b/acinclude.m4 index ff01db48b2..6ed38edb35 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1250,6 +1250,7 @@ AC_CHECK_HEADERS([ \ sys/statfs.h \ sys/statvfs.h \ sys/socket.h \ + sys/sysctl.h \ sys/time.h \ sys/types.h \ sys/un.h \ @@ -1341,6 +1342,8 @@ AC_CHECK_FUNCS([ \ sigaction \ strcasestr \ strerror \ + sysconf \ + sysctl \ timegm \ ]) @@ -1352,7 +1355,6 @@ dnl haven't found a need for yet, and so haven't imported AC_CHECK_FUNCS([ \ chown \ fchown \ - getdtablesize \ gethostname \ gettimeofday \ localtime_r \ @@ -1385,6 +1387,7 @@ AC_REPLACE_FUNCS([ \ erealloc \ err \ errx \ + getdtablesize \ getopt \ getprogname \ mkstemp \ diff --git a/src/util/hputil.c b/src/util/hputil.c index 3e9ae038e7..0613e4e27c 100644 --- a/src/util/hputil.c +++ b/src/util/hputil.c @@ -29,24 +29,6 @@ utimes(char *file, struct timeval tvp[2]) } #endif -int -random(void) -{ - return rand(); -} - -void -srandom(int seed) -{ - srand(seed); -} - -int -getdtablesize(void) -{ - return (20); -} - void setlinebuf(FILE * file) {