[syslog-ng] syslog-ng 1.3.15 compile fails on FreeBSD 3.2R

Balazs Scheidler bazsi@balabit.hu
Tue, 15 Feb 2000 10:40:59 +0100


On Mon, Feb 14, 2000 at 08:38:05PM -0500, George Madden wrote:
> I just tried compiling syslog-ng 1.3.15 with libol 0.2.14 on a FreeBSD 3.2R
> box and it fails with the following:
> 
> affile.c: In function `do_open_file':
> affile.c:52: storage size of `st' isn't known
> affile.c:54: warning: implicit declaration of function `stat'
> affile.c:55: warning: implicit declaration of function `S_ISDIR'
> affile.c:61: warning: implicit declaration of function `mkdir'
> affile.c:52: warning: unused variable `st'

try this patch (and touch affile.c.x after applying if you don't have scsh):

diff -u -r1.27 affile.c
--- affile.c    2000/02/13 16:24:01     1.27
+++ affile.c    2000/02/15 09:39:31
@@ -30,6 +30,8 @@
 #include "utils.h"
 #include "center.h"

+#include <sys/types.h>
+#include <sys/stat.h>
 #include <fcntl.h>
 #include <assert.h>
 #include <errno.h>

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt