Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelu committed Jun 22, 2018
1 parent 9008918 commit 1e47ebd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/object/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#endif
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
#define bswap_64(x) bswap64(x)
#endif

#define _ERR_MALFORMED -2
Expand Down
4 changes: 4 additions & 0 deletions src/filter/layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
#endif
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
#define bswap_64(x) bswap64(x)
#endif

#define N_IEEE802 3
Expand Down
4 changes: 4 additions & 0 deletions src/input/fpcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#endif
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
#define bswap_64(x) bswap64(x)
#endif

#define MAX_SNAPLEN 0x40000
Expand Down
4 changes: 4 additions & 0 deletions src/input/mmpcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#endif
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
#define bswap_16(x) bswap16(x)
#define bswap_32(x) bswap32(x)
#define bswap_64(x) bswap64(x)
#endif

static core_log_t _log = LOG_T_INIT("input.mmpcap");
Expand Down

0 comments on commit 1e47ebd

Please sign in to comment.