Skip to content
Snippets Groups Projects
Commit 9c97d452 authored by murray stokely's avatar murray stokely Committed by Neal Cardwell
Browse files

packetdrill: fix platforms.h for FreeBSD 10.x build

FreeBSD 10.x has fmemopen in libc, so check __FreeBSD_version and set
defines appropriately.
parent fb9393a1
No related branches found
No related tags found
No related merge requests found
......@@ -43,11 +43,15 @@
#if defined(__FreeBSD__)
#include <sys/param.h>
#define USE_LIBPCAP 1
#define TUN_PATH "/dev/tun0"
#define TUN_DEV "tun0"
#define HAVE_TCP_INFO 1
#if __FreeBSD_version > 1000028
#define HAVE_FMEMOPEN 1
#endif
#include "open_memstream.h"
#include "fmemopen.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment