Pointed out by: Doug Winterburn <dlw@seavme.xroads.com>

2) Add "#define gettimeofday(a,b) gettimeofday(a) to src/include/config.h
        On the 88k SVR4, gettimeofday only has one argument.  This is
        checked for in a few other packages by configure, so there should
        be some examples of the configure test out there.
This commit is contained in:
Marc G. Fournier 1998-03-31 02:59:07 +00:00
parent 01ecb2e3a0
commit 92c6bf9775
3 changed files with 169 additions and 133 deletions

290
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -451,6 +451,12 @@ AC_TRY_LINK([#include <time.h>],
[AC_DEFINE(HAVE_INT_TIMEZONE) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for gettimeofday args)
AC_TRY_LINK([#include <sys/time.h>],
[struct timeval *tp; struct timezone *tzp; gettimeofday(tp,tzp); ],
[AC_DEFINE(HAVE_GETTIMEOFDAY_2_ARGS) AC_MSG_RESULT(2 args)],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for union semun)
AC_TRY_LINK([#include <sys/types.h>
#include <sys/ipc.h>

View File

@ -71,6 +71,12 @@
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H
/* Set to 1 if you gettimeofday(a,b) vs gettimeofday(a) */
#undef HAVE_GETTIMEOFDAY_2_ARGS
#ifndef HAVE_GETTIMEOFDAY_2_ARGS
# define gettimeofday(a,b) gettimeofday(a)
#endif
/* Set to 1 if you have fp_class() */
#undef HAVE_FP_CLASS