From 8649aeae3e3a6bf543821a469dc04096e13aa43b Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 17 May 2013 19:20:07 -0700 Subject: [PATCH] fix build in FreeBSD --- src/encrypt.c | 2 +- src/local.c | 2 +- src/server.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encrypt.c b/src/encrypt.c index 6337a4f8..ce3f5cca 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -6,7 +6,7 @@ #include "encrypt.h" -#define OFFSET_ROL(p, o) ((u_int64_t)(*(p + o)) << (8 * o)) +#define OFFSET_ROL(p, o) ((uint64_t)(*(p + o)) << (8 * o)) static void md5(const uint8_t *text, uint8_t *digest) { md5_state_t state; diff --git a/src/local.c b/src/local.c index 672c0451..85c6c2e1 100644 --- a/src/local.c +++ b/src/local.c @@ -21,7 +21,7 @@ #include "config.h" #endif -#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_NET_IF_H) +#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_NET_IF_H) && defined(__linux__) #include #include #define SET_INTERFACE diff --git a/src/server.c b/src/server.c index 8804cd9e..e6fdfb1c 100644 --- a/src/server.c +++ b/src/server.c @@ -21,7 +21,7 @@ #include "config.h" #endif -#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_NET_IF_H) +#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_NET_IF_H) && defined(__linux__) #include #include #define SET_INTERFACE