summaryrefslogtreecommitdiffstats
path: root/runtime/typedefs.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-06-25 10:05:19 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-06-25 10:05:19 +0200
commit5941ce7720393d28f04fac817ebcd21936c1ec8d (patch)
tree7d6440106ecb6f0bae3ba250567fc13d9422dbd0 /runtime/typedefs.h
parent4fa2254a0135f47f381b5931661cf37dddaa2af2 (diff)
downloadrsyslog-5941ce7720393d28f04fac817ebcd21936c1ec8d.tar.gz
rsyslog-5941ce7720393d28f04fac817ebcd21936c1ec8d.tar.bz2
rsyslog-5941ce7720393d28f04fac817ebcd21936c1ec8d.zip
build: fix issues on FreeBSD
The last fix was incomplete. Thanks to Christiano for testing and suggestions.
Diffstat (limited to 'runtime/typedefs.h')
-rw-r--r--runtime/typedefs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/typedefs.h b/runtime/typedefs.h
index ca63d0d5..8db567f0 100644
--- a/runtime/typedefs.h
+++ b/runtime/typedefs.h
@@ -25,6 +25,9 @@
*/
#ifndef INCLUDED_TYPEDEFS_H
#define INCLUDED_TYPEDEFS_H
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#endif
/* some universal fixed size integer defines ... */
typedef long long int64;
@@ -148,7 +151,7 @@ typedef enum {
FIOP_ISEMPTY = 6 /* string empty <=> strlen(s) == 0 ?*/
} fiop_t;
-#if defined(__FreeBSD__)
+#ifndef HAVE_LSEEK64
typedef off_t off64_t;
#endif