diff options
Diffstat (limited to 'ntpsnmpd/netsnmp_daemonize.c')
-rw-r--r-- | ntpsnmpd/netsnmp_daemonize.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ntpsnmpd/netsnmp_daemonize.c b/ntpsnmpd/netsnmp_daemonize.c index 44fad1ad3965..55f8c3596492 100644 --- a/ntpsnmpd/netsnmp_daemonize.c +++ b/ntpsnmpd/netsnmp_daemonize.c @@ -57,20 +57,12 @@ SOFTWARE. #include <stdlib.h> #endif -#if TIME_WITH_SYS_TIME -# ifdef WIN32 -# include <sys/timeb.h> -# else -# include <sys/time.h> -# endif -# include <time.h> +#ifdef WIN32 +# include <sys/timeb.h> #else -# if HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif +# include <sys/time.h> #endif +#include <time.h> #include <sys/types.h> @@ -267,5 +259,5 @@ netsnmp_daemonize(int quit_immediately, int stderr_log) } #else /* !NEED_NETSNMP_DAEMONIZE */ -int netsnp_daemonize_bs; +NONEMPTY_TRANSLATION_UNIT #endif |