diff options
-rw-r--r-- | runtime/msg.c | 2 | ||||
-rw-r--r-- | runtime/stream.c | 1 | ||||
-rw-r--r-- | runtime/typedefs.h | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index 8c50b7b3..9d5fa883 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2995,7 +2995,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, pRes = (uchar*) "UPTIME NOT available on this system"; *pbMustBeFreed = 0; -# elseif defined(__FreeBSD__) +# elif defined(__FreeBSD__) { struct timespec tp; diff --git a/runtime/stream.c b/runtime/stream.c index b781324a..54210e40 100644 --- a/runtime/stream.c +++ b/runtime/stream.c @@ -67,7 +67,6 @@ # define O_LARGEFILE 0 #endif #ifndef HAVE_LSEEK64 - typedef off_t off64_t; # define lseek64(fd, offset, whence) lseek(fd, offset, whence) #endif 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 |