Commit 92c6bf97 authored by Marc G. Fournier's avatar Marc G. Fournier

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.
parent 01ecb2e3
This diff is collapsed.
...@@ -451,6 +451,12 @@ AC_TRY_LINK([#include <time.h>], ...@@ -451,6 +451,12 @@ AC_TRY_LINK([#include <time.h>],
[AC_DEFINE(HAVE_INT_TIMEZONE) AC_MSG_RESULT(yes)], [AC_DEFINE(HAVE_INT_TIMEZONE) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no)) 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_MSG_CHECKING(for union semun)
AC_TRY_LINK([#include <sys/types.h> AC_TRY_LINK([#include <sys/types.h>
#include <sys/ipc.h> #include <sys/ipc.h>
......
...@@ -71,6 +71,12 @@ ...@@ -71,6 +71,12 @@
/* Set to 1 if you have <dld.h> */ /* Set to 1 if you have <dld.h> */
#undef 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() */ /* Set to 1 if you have fp_class() */
#undef HAVE_FP_CLASS #undef HAVE_FP_CLASS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment