fix build in FreeBSD

This commit is contained in:
Max Lv
2013-05-17 19:20:07 -07:00
parent de69fbc92c
commit 8649aeae3e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 <net/if.h>
#include <sys/ioctl.h>
#define SET_INTERFACE
+1 -1
View File
@@ -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 <net/if.h>
#include <sys/ioctl.h>
#define SET_INTERFACE