#endif
#endif
-#ifdef HAS_STDINT_H
-#include <stdint.h>
-#elif defined(HAS_INTTYPES_H)
-#include <inttypes.h>
-#endif
-
/* ================================================== */
union sockaddr_in46 {
#include "sched.h"
#include "util.h"
#include "logging.h"
-#include "md5.h"
#include "keys.h"
#include "ntp_sources.h"
#include "ntp_core.h"
#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "sysincl.h"
#include "keys.h"
#include "cmdparse.h"
#include "config.h"
-#include <assert.h>
-#include <stddef.h>
+#include "sysincl.h"
#include "conf.h"
#include "local.h"
#include "config.h"
-#include <stddef.h>
+#include "sysincl.h"
#include "manual.h"
#include "logging.h"
***********************************************************************
*/
-#ifdef HAS_STDINT_H
-#include <stdint.h>
-#elif defined(HAS_INTTYPES_H)
-#include <inttypes.h>
-#endif
+#include "sysincl.h"
/* typedef a 32-bit type */
typedef uint32_t UINT4;
#ifndef GOT_MEMORY_H
#define GOT_MEMORY_H
-#include <stdlib.h>
-
#define Malloc(x) malloc(x)
#define MallocNew(T) ((T *) malloc(sizeof(T)))
#define MallocArray(T, n) ((T *) malloc((n) * sizeof(T)))
#include "nameserv.h"
#include "util.h"
-#include <resolv.h>
/* ================================================== */
#ifndef GOT_NTP_H
#define GOT_NTP_H
-#ifdef HAS_STDINT_H
-#include <stdint.h>
-#elif defined(HAS_INTTYPES_H)
-#include <inttypes.h>
-#endif
+#include "sysincl.h"
#include "hash.h"
#include "conf.h"
#include "util.h"
-#include <fcntl.h>
-
union sockaddr_in46 {
struct sockaddr_in in4;
#ifdef HAVE_IPV6
#include "config.h"
+#include "sysincl.h"
+
#include "refclock.h"
#include "logging.h"
#include "util.h"
-#include <sys/types.h>
-#include <sys/shm.h>
-
#define SHMKEY 0x4e545030
struct shmTime {
#include "config.h"
+#include "sysincl.h"
+
#include "refclock.h"
#include "logging.h"
#include "util.h"
#include "sched.h"
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <unistd.h>
-
#define SOCK_MAGIC 0x534f434b
struct sock_sample {
#include "config.h"
-#include <assert.h>
-#include <math.h>
-
-#include <stdio.h>
-#include <string.h>
+#include "sysincl.h"
#include "regress.h"
#include "logging.h"
#include "config.h"
-#if defined LINUX
+#include "sysincl.h"
-#ifdef sparc
-#define __KERNEL__
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <time.h>
-#include <sys/time.h>
-#include <sys/types.h>
-
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <errno.h>
-#include <assert.h>
-#include <string.h>
#include <linux/rtc.h>
#include "logging.h"
return 1;
}
-
-/* ================================================== */
-
-#endif /* defined LINUX */
#include "reports.h"
-#if defined LINUX
-
extern int RTC_Linux_Initialise(void);
extern void RTC_Linux_Finalise(void);
extern void RTC_Linux_TimePreInit(void);
extern void RTC_Linux_CycleLogFile(void);
-#endif /* defined LINUX */
-
#endif /* _GOT_RTC_LINUX_H */
#include "config.h"
-#ifdef LINUX
-
-#include <sys/time.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <math.h>
-#include <ctype.h>
-#include <assert.h>
+#include "sysincl.h"
+
#include <sys/utsname.h>
#if defined(HAVE_SCHED_SETSCHEDULER)
}
}
#endif /* HAVE_MLOCKALL */
-
-#endif /* LINUX */
-
-/* vim:ts=8
- * */
-
#include <math.h>
#include <netdb.h>
#include <netinet/in.h>
+#include <resolv.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <sys/un.h>
+#include <sys/shm.h>
#include <syslog.h>
#include <time.h>
#include "config.h"
-#ifdef LINUX
-
-#define _LOOSE_KERNEL_NAMES
-
#include "chrony_timex.h"
#include "wrap_adjtimex.h"
return adjtimex(&txc);
}
-
-#endif
-