From: Harlan Stenn Date: Wed, 7 Jul 1999 07:09:12 +0000 (-0000) Subject: Many files: X-Git-Tag: NTP_4_0_94~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8a39c2a7f844647cae326432bc6c650f5336fb9;p=thirdparty%2Fntp.git Many files: * 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 bk: 3782fd18CK10frHA9oq_DNzgODF-7A --- diff --git a/ChangeLog b/ChangeLog index 55eb12a29d..696abc48c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +1999-07-07 Harlan Stenn + + * 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 + 1999-06-23 Harlan Stenn * ntpd/refclock_irig.c (irig_debug): NetBSD patches diff --git a/config.h.in b/config.h.in index c7605377ee..4e4ea5a83c 100644 --- a/config.h.in +++ b/config.h.in @@ -780,6 +780,9 @@ /* Define if you have the header file. */ #undef HAVE_SYS_TYPES_H +/* Define if you have the header file. */ +#undef HAVE_SYS_WAIT_H + /* Define if you have the header file. */ #undef HAVE_TERMIO_H diff --git a/configure b/configure index 30f997417f..b52664734d 100755 --- a/configure +++ b/configure @@ -2520,7 +2520,7 @@ else 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 diff --git a/configure.in b/configure.in index 396dd79d26..c986f86460 100644 --- a/configure.in +++ b/configure.in @@ -203,7 +203,7 @@ esac 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) diff --git a/include/ntp_machine.h b/include/ntp_machine.h index 5d3275657a..f0b8ff1a63 100644 --- a/include/ntp_machine.h +++ b/include/ntp_machine.h @@ -442,12 +442,6 @@ struct servent *getservbyname P((char *name, char *type)); # 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 diff --git a/include/parse.h b/include/parse.h index 022371fd49..56a92e95d1 100644 --- a/include/parse.h +++ b/include/parse.h @@ -72,6 +72,9 @@ extern unsigned int splclock P((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)) diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index f942efb842..22f9450b0b 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -6,8 +6,13 @@ #include #include #include +#ifndef SIGCHLD +#define SIGCHLD SIGCLD +#endif #if !defined(VMS) +#ifdef HAVE_SYS_WAIT_H #include +#endif #endif /* VMS */ #include