From: Harlan Stenn Date: Sun, 6 Jan 2013 09:08:55 +0000 (+0000) Subject: [Bug 1223] reorganize inclusion of sys/resource.h X-Git-Tag: NTP_4_2_7P346~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=699167fe32c36117c06e8e1798cad8b68cd44cf5;p=thirdparty%2Fntp.git [Bug 1223] reorganize inclusion of sys/resource.h bk: 50e93f2787seWe_mBB-9MBA3iP9paA --- diff --git a/ChangeLog b/ChangeLog index 5a1037b65..27ecba740 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1223] reorganize inclusion of sys/resource.h. (4.2.7p345) 2013/01/04 Released by Harlan Stenn * Update several .def files to use autogen-5.17 feature set. (4.2.7p344) 2013/01/03 Released by Harlan Stenn diff --git a/include/ntp_config.h b/include/ntp_config.h index 8af4cd340..9c2f05585 100644 --- a/include/ntp_config.h +++ b/include/ntp_config.h @@ -1,6 +1,10 @@ #ifndef NTP_CONFIG_H #define NTP_CONFIG_H +#ifdef HAVE_SYS_RESOURCE_H +# include +#endif /* HAVE_SYS_RESOURCE_H */ + #include "ntp_machine.h" #include "ntpsim.h" diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index 659f27520..e9098fdc8 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -26,9 +26,6 @@ #ifndef SIGCHLD # define SIGCHLD SIGCLD #endif -#ifdef HAVE_SYS_RESOURCE_H -# include -#endif /* HAVE_SYS_RESOURCE_H */ #ifdef HAVE_SYS_WAIT_H # include #endif diff --git a/ntpd/ntp_util.c b/ntpd/ntp_util.c index 0b15dbb59..83040aeef 100644 --- a/ntpd/ntp_util.c +++ b/ntpd/ntp_util.c @@ -31,12 +31,6 @@ # include #endif -#ifdef DOSYNCTODR -# if !defined(VMS) -# include -# endif /* VMS */ -#endif - #if defined(VMS) # include #endif /* VMS */ diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index ef4b8493d..625e7a645 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -44,9 +44,6 @@ #ifdef HAVE_SYS_IOCTL_H # include #endif /* HAVE_SYS_IOCTL_H */ -#ifdef HAVE_SYS_RESOURCE_H -# include -#endif /* HAVE_SYS_RESOURCE_H */ #if defined(HAVE_RTPRIO) # ifdef HAVE_SYS_LOCK_H # include