Browse Source

fix build in FreeBSD

pull/4/merge
Max Lv 11 years ago
parent
commit
8649aeae3e
3 changed files with 3 additions and 3 deletions
  1. 2
      src/encrypt.c
  2. 2
      src/local.c
  3. 2
      src/server.c

2
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;

2
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 <net/if.h>
#include <sys/ioctl.h>
#define SET_INTERFACE

2
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 <net/if.h>
#include <sys/ioctl.h>
#define SET_INTERFACE

Loading…
Cancel
Save