From acd99f25ef0d1deeea4914476c2321c7dcf15c85 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 11 Sep 2005 20:09:56 +0900 Subject: [PATCH] FreeBSD support NAKAMURA Takumi writes: I tried to compile chrony-1.21 on FreeBSD 4.8-RELEASE & 5.4-RELEASE. I modify two files, configure, sysinc.h. configure: add label "FreeBSD-i386" to "BSD/386" line sysincl.h: 1. FreeBSD obsoletes alloca.h 2. FreeBSD use stdlib.h instead of malloc.h, to use malloc(), free() Attached file includes the above modifications. --- configure | 2 +- sysincl.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 786e9e1..914ebaa 100755 --- a/configure +++ b/configure @@ -248,7 +248,7 @@ case $SYSTEM in fi ;; - BSD/386-i[3456]86 ) + BSD/386-i[3456]86|FreeBSD-i386 ) # Antti Jrvinen reported that this system can # be supported with the SunOS 4.x driver files. EXTRA_OBJECTS="sys_sunos.o strerror.o" diff --git a/sysincl.h b/sysincl.h index fbbd2ff..4cb1da8 100644 --- a/sysincl.h +++ b/sysincl.h @@ -35,7 +35,7 @@ #if defined (SOLARIS) || defined(SUNOS) || defined(LINUX) || defined(__NetBSD__) -#if !defined(__NetBSD__) +#if !defined(__NetBSD__) && !defined(__FreeBSD__) #include #endif #include @@ -43,7 +43,9 @@ #include #include #include +#if !defined(__FreeBSD__) #include +#endif #include #include #include