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