+1999-07-07 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * include/ntp_machine.h (HAVE_TERMIOS): STREAMS does not imply
+ HAVE_TERMIOS !!!
+ * include/parse.h (timercmp): Macro defined if needed.
+ * ntpd/ntp_config.c (SIGCHLD): Macro defined as SIGCLD if needed.
+ (sys/wait.h): File included only if HAVE_SYS_WAIT_H.
+ * configure.in (sys/wait.h): File added to AC_CHECK_HEADERS list.
+ From: Philippe De Muyter <phdm@macqel.be>
+
1999-06-23 Harlan Stenn <stenn@whimsy.udel.edu>
* ntpd/refclock_irig.c (irig_debug): NetBSD patches
/* Define if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
+/* Define if you have the <sys/wait.h> header file. */
+#undef HAVE_SYS_WAIT_H
+
/* Define if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
fi
done
-for ac_hdr in stdlib.h string.h termio.h termios.h timepps.h
+for ac_hdr in stdlib.h string.h sys/wait.h termio.h termios.h timepps.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
AC_HEADER_STDC
AC_CHECK_HEADERS(bstring.h errno.h fcntl.h memory.h poll.h sched.h sgtty.h)
-AC_CHECK_HEADERS(stdlib.h string.h termio.h termios.h timepps.h)
+AC_CHECK_HEADERS(stdlib.h string.h sys/wait.h termio.h termios.h timepps.h)
AC_CHECK_HEADERS(timex.h unistd.h utmp.h utmpx.h)
AC_CHECK_HEADERS(arpa/nameser.h net/if.h netinet/in.h netinet/ip.h resolv.h)
AC_CHECK_HEADERS(sun/audioio.h sys/audioio.h)
# endif
#endif
-#ifdef STREAM /* STREAM implies TERMIOS */
-# ifndef HAVE_TERMIOS
-# define HAVE_TERMIOS
-# endif
-#endif
-
#ifndef RETSIGTYPE
# if defined(NTP_POSIX_SOURCE)
# define RETSIGTYPE void
#if defined(timercmp) && defined(__GNUC__)
#undef timercmp
+#endif
+
+#if !defined(timercmp)
#define timercmp(tvp, uvp, cmp) \
((tvp)->tv_sec cmp (uvp)->tv_sec || \
((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec))
#include <sys/param.h>
#include <sys/types.h>
#include <signal.h>
+#ifndef SIGCHLD
+#define SIGCHLD SIGCLD
+#endif
#if !defined(VMS)
+#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
+#endif
#endif /* VMS */
#include <sys/time.h>