]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Use config.h
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 23 May 2011 15:51:21 +0000 (17:51 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 24 May 2011 16:07:06 +0000 (18:07 +0200)
42 files changed:
Makefile.in
acquire.c
addrfilt.c
broadcast.c
client.c
clientlog.c
cmdmon.c
cmdparse.c
conf.c
configure
keys.c
local.c
logging.c
main.c
manual.c
md5.c
mkdirpp.c
nameserv.c
ntp_core.c
ntp_io.c
ntp_sources.c
pktlength.c
refclock.c
refclock_pps.c
refclock_shm.c
refclock_sock.c
reference.c
regress.c
rtc.c
rtc_linux.c
sched.c
sources.c
sourcestats.c
strerror.c
sys.c
sys_linux.c
sys_netbsd.c
sys_solaris.c
sys_sunos.c
tempcomp.c
util.c
wrap_adjtimex.c

index a2ac0b72be08c3e8377b865029da09bbea31e81b..5cd19bef94fcb6900b2b8f87a25a12b7ca8ea114 100644 (file)
@@ -31,7 +31,7 @@ DOCDIR=@DOCDIR@
 CC = @CC@
 CCWARNFLAGS = @CCWARNFLAGS@
 OPTFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@ @SYSDEFS@ @EXTRA_DEFS@
+CPPFLAGS = @CPPFLAGS@
 
 DESTDIR=
 
@@ -75,9 +75,6 @@ chronyd : $(OBJS) $(EXTRA_OBJS)
 chronyc : $(CLI_OBJS)
        $(CC) $(OPTFLAGS) -o chronyc $(CLI_OBJS) $(LDFLAGS) @READLINE_LINK@ $(LIBS) $(EXTRA_CLI_LIBS)
 
-conf.o : conf.c
-       $(CC) $(CFLAGS) $(CPPFLAGS) -DDEFAULT_CONF_DIR=\"$(SYSCONFDIR)\" -c $<
-
 client.o : client.c
        $(CC) $(CFLAGS) $(CPPFLAGS) @READLINE_COMPILE@ -c $<
 
index 0a02ee03aa21ae7fbaa50d8008ae458fd637c63f..ff554ca18eb3f1442df74b88925f72c133974776 100644 (file)
--- a/acquire.c
+++ b/acquire.c
@@ -37,6 +37,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "acquire.h"
index f280f0b359768816a8e8b2e2d24cc533b9fe7c9a..b6ae1ae2a93f77063b4735c49b81bbee2cd85673 100644 (file)
@@ -28,6 +28,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "addrfilt.h"
index 11c8d700f8d3cb89f447a885decc713cb3a5d415..1e3314bbabba77a0be2e379b69a763a0e835c4e3 100644 (file)
@@ -24,6 +24,8 @@
   Deal with broadcast server functions.
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 #include "memory.h"
 
index aad6944c4c9f293efc15e17932b167c2bb70d840..d73e3dc4cc1c23465b8c56bbe23b03ac4d9489b5 100644 (file)
--- a/client.c
+++ b/client.c
@@ -26,6 +26,8 @@
   from it whilst running.
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "candm.h"
index 024375354ab14249fe62dc7f4c0487f130eee7e0..7666ffdf3242802f027d6688936490017634e2f1 100644 (file)
@@ -31,6 +31,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 #include "clientlog.h"
 #include "conf.h"
index 04dd7d05930d04477140cde07e2f0d1b0be164ee..e0ea2285dab8e841335c323455328e1b23772a74 100644 (file)
--- a/cmdmon.c
+++ b/cmdmon.c
@@ -25,6 +25,8 @@
   Command and monitoring module in the main program
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "cmdmon.h"
index f91a3daf108aaba17bd95e1ae8460b235ac1b7f3..0bf249265b1149f5ded1ff3ca4ebee7b0587f7e7 100644 (file)
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "cmdparse.h"
diff --git a/conf.c b/conf.c
index 187f1e359c6d50c4386bd1e9da88c514d1b46c6a..87050eba576e36e9d1d2e5dcad78520980f5600d 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -36,6 +36,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "conf.h"
index f3a9373399f084388ec0ad4ab700a73de736bcca..b0265c3b308443a31feea3c5353b9d21d1451649 100755 (executable)
--- a/configure
+++ b/configure
@@ -8,6 +8,8 @@
 #
 # =======================================================================
 
+rm -f config.h
+
 # This configure script determines the operating system type and version
 
 if [ "x${CC}" = "x" ]; then
@@ -69,7 +71,7 @@ test_code () {
 #}}}
 #{{{ usage
 usage () {
-  cat <<EOF;
+  cat <<EOF
 \`configure' configures tdl to adapt to many kinds of systems.
 
 Usage: ./configure [OPTION]...
@@ -133,6 +135,15 @@ EOF
 
 }
 #}}}
+#{{{
+add_def () {
+  if [ "x$2" = "x" ]; then
+    echo "#define $1 1" >> config.h
+  else
+    echo "#define $1 $2" >> config.h
+  fi
+}
+#}}}
 
 # ======================================================================
 
@@ -169,7 +180,7 @@ for option
 do
     case "$option" in
     --trace )
-      EXTRA_DEFS="-DTRACEON"
+      add_def TRACEON
     ;;
     --disable-readline )
       feat_readline=0
@@ -257,17 +268,17 @@ case $SYSTEM in
         4.* )
             EXTRA_OBJECTS="sys_sunos.o strerror.o"
             EXTRA_LIBS="-lkvm"
-            SYSDEFS="-DSUNOS"
+            add_def SUNOS
             echo "Configuring for SunOS (" $SYSTEM "version" $VERSION ")"
         ;;
         5.* )
             EXTRA_OBJECTS="sys_solaris.o"
             EXTRA_LIBS="-lsocket -lnsl -lkvm -lelf"
             EXTRA_CLI_LIBS="-lsocket -lnsl"
-            SYSDEFS="-DSOLARIS"
+            add_def SOLARIS
             echo "Configuring for Solaris (" $SYSTEM "SunOS version" $VERSION ")"
             if [ $VERSION = "5.3" ]; then
-                SYSDEFS="$SYSDEFS -DHAS_NO_BZERO"
+                add_def HAS_NO_BZERO
                 echo "Using memset() instead of bzero()"
             fi
         ;;
@@ -279,12 +290,12 @@ case $SYSTEM in
         try_rtc=1
         try_setsched=1
         try_lockmem=1
-        SYSDEFS="-DLINUX"
+        add_def LINUX
         echo "Configuring for " $SYSTEM
         if [ "${MACHINE}" = "alpha" ]; then
            echo "Enabling -mieee"
            # FIXME: Should really test for GCC
-           SYSDEFS="$SYSDEFS -mieee -DALPHA"
+           MYCFLAGS="$MYCFLAGS -mieee"
         fi
     ;;
 
@@ -293,7 +304,7 @@ case $SYSTEM in
         # be supported with the SunOS 4.x driver files.
         EXTRA_OBJECTS="sys_sunos.o strerror.o"
         EXTRA_LIBS="-lkvm"
-        SYSDEFS="-DSUNOS"
+        add_def SUNOS
         echo "Configuring for $SYSTEM (using SunOS driver)"
     ;;
     NetBSD-* )
@@ -308,13 +319,13 @@ case $SYSTEM in
         EXTRA_OBJECTS="sys_solaris.o"                
         EXTRA_LIBS="-lsocket -lnsl -lkvm -lelf"      
         EXTRA_CLI_LIBS="-lsocket -lnsl"                              
-        SYSDEFS="-DSOLARIS"                               
+        add_def SOLARIS
         echo "Configuring for Solaris (" $SYSTEM "SunOS version" $VERSION ")" 
     ;;                                                                        
     CYGWIN32_NT-i[3456]86 )
         EXTRA_OBJECTS="sys_winnt.o"
         EXTRA_LIBS=""
-        SYSDEFS="-DWINNT"
+        add_def WINNT
         echo "Configuring for Windows NT (Cygwin32)"
     ;;
     * )
@@ -336,11 +347,11 @@ else
 fi
   
 if test_code '<stdint.h>' 'stdint.h' '' '' ''; then
-  SYSDEFS="${SYSDEFS} -DHAS_STDINT_H"
+  add_def HAS_STDINT_H
 fi
 
 if test_code '<inttypes.h>' 'inttypes.h' '' '' ''; then
-  SYSDEFS="${SYSDEFS} -DHAS_INTTYPES_H"
+  add_def HAS_INTTYPES_H
 fi
 
 if [ $feat_ipv6 = "1" ] && \
@@ -350,7 +361,7 @@ if [ $feat_ipv6 = "1" ] && \
     n.sin6_addr = in6addr_any;
     return !inet_ntop(AF_INET6, &n.sin6_addr.s6_addr, p, sizeof(p));'
 then
-  SYSDEFS="${SYSDEFS} -DHAVE_IPV6"
+  add_def HAVE_IPV6
 fi
 
 if [ $feat_pps = "1" ] && \
@@ -360,7 +371,7 @@ if [ $feat_pps = "1" ] && \
     struct timespec ts;
     return time_pps_fetch(h, PPS_TSFMT_TSPEC, &i, &ts);'
 then
-  SYSDEFS="${SYSDEFS} -DHAVE_PPSAPI"
+  add_def HAVE_PPSAPI
 fi
 
 if [ $feat_linuxcaps = "1" ] && [ $try_linuxcaps = "1" ] && \
@@ -370,7 +381,7 @@ if [ $feat_linuxcaps = "1" ] && [ $try_linuxcaps = "1" ] && \
     '' '-lcap' \
     'prctl(PR_SET_KEEPCAPS, 1);cap_set_proc(cap_from_text("cap_sys_time=ep"));'
 then
-    EXTRA_DEFS="${EXTRA_DEFS} -DFEAT_LINUXCAPS=1"
+    add_def FEAT_LINUXCAPS
     EXTRA_LIBS="-lcap"
 fi
 
@@ -379,7 +390,7 @@ if [ $feat_rtc = "1" ] && [ $try_rtc = "1" ] && \
     'ioctl(1, RTC_UIE_ON&RTC_UIE_OFF&RTC_RD_TIME&RTC_SET_TIME, 0&RTC_UF);'
 then
     EXTRA_OBJECTS="$EXTRA_OBJECTS rtc_linux.o"
-    EXTRA_DEFS="$EXTRA_DEFS -DFEAT_RTC=1"
+    add_def FEAT_RTC
 fi
 
 if [ $try_setsched = "1" ] && \
@@ -390,7 +401,7 @@ if [ $try_setsched = "1" ] && \
      sched_get_priority_max(SCHED_FIFO);
      sched_setscheduler(0, SCHED_FIFO, &sched);'
 then
-  SYSDEFS="${SYSDEFS} -DHAVE_SCHED_SETSCHEDULER"
+  add_def HAVE_SCHED_SETSCHEDULER
 fi
 
 if [ $try_lockmem = "1" ] && \
@@ -401,12 +412,12 @@ if [ $try_lockmem = "1" ] && \
      setrlimit(RLIMIT_MEMLOCK, &rlim);
      mlockall(MCL_CURRENT|MCL_FUTURE);'
 then
-  SYSDEFS="${SYSDEFS} -DHAVE_MLOCKALL"
+  add_def HAVE_MLOCKALL
 fi
 
 if [ $feat_forcednsretry = "1" ]
 then
-    EXTRA_DEFS="$EXTRA_DEFS -DFORCE_DNSRETRY=1"
+  add_def FORCE_DNSRETRY
 fi
 
 READLINE_COMPILE=""
@@ -417,7 +428,9 @@ if [ $feat_readline = "1" ]; then
       "$readline_inc" "$readline_lib -ledit" \
       'add_history(readline("prompt"));'
     then
-      READLINE_COMPILE="-DFEAT_READLINE=1 -DUSE_EDITLINE=1 $readline_inc"
+      add_def FEAT_READLINE
+      add_def USE_EDITLINE
+      READLINE_COMPILE="$readline_inc"
       READLINE_LINK="$readline_lib -ledit"
     fi
   fi
@@ -427,7 +440,8 @@ if [ $feat_readline = "1" ]; then
       "$readline_inc" "$readline_lib $ncurses_lib -lreadline -lncurses" \
       'add_history(readline("prompt"));'
     then
-      READLINE_COMPILE="-DFEAT_READLINE=1 $readline_inc"
+      add_def FEAT_READLINE
+      READLINE_COMPILE="$readline_inc"
       READLINE_LINK="$readline_lib $ncurses_lib -lreadline -lncurses"
     fi
   fi
@@ -478,6 +492,8 @@ if [ "x$SETDOCDIR" != "x" ]; then
   DOCDIR=$SETDOCDIR
 fi
 
+add_def DEFAULT_CONF_DIR "\"$SYSCONFDIR\""
+
 sed -e "s%@EXTRA_OBJECTS@%${EXTRA_OBJECTS}%;\
        s%@CC@%${MYCC}%;\
        s%@CFLAGS@%${MYCFLAGS}%;\
@@ -486,8 +502,6 @@ sed -e "s%@EXTRA_OBJECTS@%${EXTRA_OBJECTS}%;\
        s%@LIBS@%${LIBS}%;\
        s%@LDFLAGS@%${MYLDFLAGS}%;\
        s%@EXTRA_LIBS@%${EXTRA_LIBS}%;\
-       s%@SYSDEFS@%${SYSDEFS}%;\
-       s%@EXTRA_DEFS@%${EXTRA_DEFS}%;\
        s%@EXTRA_CLI_LIBS@%${EXTRA_CLI_LIBS}%;\
        s%@READLINE_COMPILE@%${READLINE_COMPILE}%;\
        s%@READLINE_LINK@%${READLINE_LINK}%;\
diff --git a/keys.c b/keys.c
index eda42c9b0aaf9787802bc5f091b0f3aecdf19dc4..68a1f1bb31687dcdbd7b567a4c59f1e57195dae2 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/local.c b/local.c
index a48ff879ceb9485df0728a7fe34930663a7a8909..801751219d3f14889de8d9e49cd454b2c7d68f56 100644 (file)
--- a/local.c
+++ b/local.c
@@ -28,6 +28,8 @@
   They interface with the system specific driver files in sys_*.c
   */
 
+#include "config.h"
+
 #include <assert.h>
 #include <stddef.h>
 
index ff8832f657db2772dbce5fb33b1a48fe28c77de0..282d86ee103cc425e1342d4049b0db58ff941357 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -25,6 +25,8 @@
   Module to handle logging of diagnostic information
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "main.h"
diff --git a/main.c b/main.c
index 93148fc69ea0fd99f36b47db1f2829bb524d05ee..f7db90015756cedca1f99887cb7aaf95239f47d7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -25,6 +25,8 @@
   The main program
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "main.h"
index 16686de5e95478ad68fc5be56aea3d2d9f202e76..93a9617f708d2164e4ffa013e5dd07fd03bf4a01 100644 (file)
--- a/manual.c
+++ b/manual.c
@@ -30,6 +30,8 @@
 
   */
 
+#include "config.h"
+
 #include <stddef.h>
 
 #include "manual.h"
diff --git a/md5.c b/md5.c
index f997a6ec1ce342c18db01da2ad45b5c3209ca510..e7a1121e1e9d605129938a349a1b835e2a14ba1a 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -37,6 +37,8 @@
  ***********************************************************************
  */
 
+#include "config.h"
+
 #include "md5.h"
 
 /*
index 65bc9b2498e37f7814c5dc59af659593fb85a80a..88e29da94026898b33e520f6827211f993f18a6a 100644 (file)
--- a/mkdirpp.c
+++ b/mkdirpp.c
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "mkdirpp.h"
index 268ee2ee126beb884956c3d9dabb94c199af04ed..1770845e8419ab1876052d468728a5cf8129fb76 100644 (file)
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "nameserv.h"
index 639b350bfb90fb685a7100b3f21348c2432739fe..6c8a4eacb5bfa3680598d1296d35cee85cc8f489 100644 (file)
@@ -25,6 +25,8 @@
   Core NTP protocol engine
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "ntp_core.h"
index baaf79aad4e01ddd0dc123fde9cc0a415d470b17..9bad2bca5cb7d22d17852e517a69d9886fb1513e 100644 (file)
--- a/ntp_io.c
+++ b/ntp_io.c
@@ -26,6 +26,8 @@
   This file deals with the IO aspects of reading and writing NTP packets
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "ntp_io.h"
index d7739786d70036ec3e43801f0fb91b43b2f180da..43a5d91d06b794043f2df3110d18c718eefded8b 100644 (file)
@@ -27,6 +27,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "ntp_sources.h"
index 74f35dbd8549353964074caa7c39044f2fcc73ca..a2682f7ef76c8784f4abbbb42cc1eab3aa328c67 100644 (file)
@@ -26,6 +26,8 @@
   integer endianness within the structures.
 
   */
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "util.h"
index 6fd3527e93ac2a29b8faa241b4ca12498385e4c2..edb743d30a85ee5f617f105ed8faad69f8ba56f4 100644 (file)
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include "refclock.h"
 #include "reference.h"
 #include "conf.h"
index 0a28b06bce94183cbafefa7a8363161150629503..3a7ae1efc3e92f27dacd2b351adda21668f1daf0 100644 (file)
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include "refclock.h"
 
 #if HAVE_PPSAPI
index 083a06cee02283387ee9ed7f5ef014d40932c42d..b9edea41a8a62c102d60fbdd294b18d58a848194 100644 (file)
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include "refclock.h"
 #include "logging.h"
 #include "util.h"
index b4140dcc8da9cb80e1e752b36b1dbf9d9696bdde..79e0e545adb9274b8ac03c4b3a7c68f5edda0403 100644 (file)
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include "refclock.h"
 #include "logging.h"
 #include "util.h"
index 14f61991b0516197f4e3cd95d3906e6ca06fde8e..2c58b3b590dfb13a6ad3a935c20caf87ed87b6de 100644 (file)
@@ -25,6 +25,8 @@
   This module keeps track of the source which we are claiming to be
   our reference, for the purposes of generating outgoing NTP packets */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "memory.h"
index 1613d55ba021abe8d9f0b5823c075f61d593746c..9322d1ff4dd6766895582284249241fc50187ad4 100644 (file)
--- a/regress.c
+++ b/regress.c
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #include <assert.h>
 #include <math.h>
 
diff --git a/rtc.c b/rtc.c
index 612f5b03f7a3baa5a2daf63dc2191908bcbb7a5d..40109007395de9dc003cccb5f3203f1550a75aed 100644 (file)
--- a/rtc.c
+++ b/rtc.c
@@ -23,6 +23,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "rtc.h"
index 5fbcf0c90a36cf280b456b1f4b295131e7a20a49..7f53da8b46db7d0d110afb47f10637431660847b 100644 (file)
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #if defined LINUX
 
 #ifdef sparc
diff --git a/sched.c b/sched.c
index 3da75bd3e4b40804931fcf5dbef2e6a583801cdb..c70e195ab56f9d36748de3944e67e790c6727fd6 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -26,6 +26,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "sched.h"
index bc515e97c1546d1d1016cbd1fea89d6a89b11c13..5b022f37186bb797fa430568858aa4592bd488b0 100644 (file)
--- a/sources.c
+++ b/sources.c
@@ -28,6 +28,8 @@
 
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "sources.h"
index bdb07ddf044296a6bcfb5b49d5c0e8ccb2f90536..e36356a612b5faad67a6a17f3f04a724aa5f02fd 100644 (file)
@@ -26,6 +26,8 @@
   analysis on the samples obtained from the sources,
   to determined frequencies and error bounds. */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "sourcestats.h"
index 7928dc5cd986a58c60e67674e45d6e600e1b9fad..83961427730b3dcab14ba6af523d4d8c9d65972e 100644 (file)
@@ -24,6 +24,8 @@
   Replacement strerror function for systems that don't have it
   */
 
+#include "config.h"
+
 #ifdef SUNOS
 
 #include <errno.h>
diff --git a/sys.c b/sys.c
index ac73ec4280e5e06948c2bf4e3b93f93767a310eb..6c752fa7dd719f7c3d54c5e6919d1c3d50edf1f3 100644 (file)
--- a/sys.c
+++ b/sys.c
@@ -25,6 +25,8 @@
   in the various operating-system specific modules
   */
 
+#include "config.h"
+
 #include "sys.h"
 #include "logging.h"
 
index 7370d227db781cd185d968c9598bbeb683c49e46..441e6e42c63868f621975c4c6ebf6f7e58c768fa 100644 (file)
@@ -27,6 +27,8 @@
 
   */
 
+#include "config.h"
+
 #ifdef LINUX
 
 #include <sys/time.h>
index ada0e653be924b0d9e8568f34346614ab92fd676..863f572c8b292252d0445b71e4cd34592108d778 100644 (file)
@@ -25,6 +25,8 @@
   Driver file for the NetBSD operating system.
   */
 
+#include "config.h"
+
 #ifdef __NetBSD__
 
 #include <kvm.h>
index e08a602dbc7565dc2ae08322b4d434cf46cc9d1f..db40091eb240eab5788c3b7813fa3b3226a888aa 100644 (file)
@@ -24,6 +24,8 @@
   Driver file for Solaris operating system
   */
 
+#include "config.h"
+
 #ifdef SOLARIS
 
 #include <kvm.h>
index da38e461424ec91772ebb7c3cfaec4cc9fde1cc5..5178c5aabf7a9031cb6cbd1013c7bab3f3567dc2 100644 (file)
@@ -24,6 +24,8 @@
   Driver file for the SunOS 4.1.x operating system.
   */
 
+#include "config.h"
+
 #ifdef SUNOS
 
 #include <kvm.h>
index c92d2c316605545cc803ffde29b49fca091e2b6c..55bd0917cded047ac445bda0146afd197b589c21 100644 (file)
@@ -25,6 +25,8 @@
 
   */
 
+#include "config.h"
+
 #include "conf.h"
 #include "local.h"
 #include "memory.h"
diff --git a/util.c b/util.c
index 2fe47639b5000fb9ee1d540f34b5f67c8cf7d8c6..0761c94e7351be6a36bf270cf9c3898bb51a4430 100644 (file)
--- a/util.c
+++ b/util.c
@@ -25,6 +25,8 @@
   Various utility functions
   */
 
+#include "config.h"
+
 #include "sysincl.h"
 
 #include "util.h"
index 740e4552aee9bcb0ec0c06a4628787e8aede38e6..34e82513e64402a6e985de32fba1d54b15fbf147 100644 (file)
@@ -29,6 +29,8 @@
 
   */
 
+#include "config.h"
+
 #ifdef LINUX
 
 #define _LOOSE_KERNEL_NAMES