FreeBSD fixes
This commit is contained in:
+6
-1
@@ -170,7 +170,12 @@ case "$host" in
|
|||||||
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
||||||
echo "Using libpcap from $PCAP_HOME"
|
echo "Using libpcap from $PCAP_HOME"
|
||||||
PCAP_INC="-I $PCAP_HOME/libpcap"
|
PCAP_INC="-I $PCAP_HOME/libpcap"
|
||||||
PCAP_LIB="$PCAP_HOME/libpcap/libpcap.a $PCAP_HOME/lib/libpfring.a $LIBNUMA `$PCAP_HOME/lib/pfring_config --libs`"
|
PFRING_LIB=
|
||||||
|
if test -f $PCAP_HOME/lib/libpfring.a; then :
|
||||||
|
PFRING_LIB=$PCAP_HOME/lib/libpfring.a
|
||||||
|
fi
|
||||||
|
|
||||||
|
PCAP_LIB="$PCAP_HOME/libpcap/libpcap.a $PFRING_LIB $LIBNUMA `$PCAP_HOME/lib/pfring_config --libs`"
|
||||||
AC_CHECK_LIB([rt], [clock_gettime], [PCAP_LIB="$PCAP_LIB -lrt"])
|
AC_CHECK_LIB([rt], [clock_gettime], [PCAP_LIB="$PCAP_LIB -lrt"])
|
||||||
AC_CHECK_LIB([nl], [nl_handle_alloc], [PCAP_LIB="$PCAP_LIB -lnl"])
|
AC_CHECK_LIB([nl], [nl_handle_alloc], [PCAP_LIB="$PCAP_LIB -lnl"])
|
||||||
# The dlopen() function is in libdl on GLIBC-based systems
|
# The dlopen() function is in libdl on GLIBC-based systems
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
INC=-I ../src/include
|
INC=-I ../src/include -I/usr/local/include
|
||||||
LIBDPI=../src/lib/libndpi.a
|
LIBDPI=../src/lib/libndpi.a
|
||||||
LIB=$(LIBDPI) -lrrd -lm @LIBS@ @ADDITIONAL_LIBS@ @LDFLAGS@
|
LIB=$(LIBDPI) -lrrd -lm @LIBS@ @ADDITIONAL_LIBS@ @LDFLAGS@
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include "rrd.h"
|
#include <rrd.h>
|
||||||
#include "ndpi_api.h"
|
#include "ndpi_api.h"
|
||||||
|
|
||||||
#define DEFAULT_ALPHA 0.5
|
#define DEFAULT_ALPHA 0.5
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
gcc -E -dM - < /dev/null |grep ENDIAN
|
gcc -E -dM - < /dev/null |grep ENDIAN
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
#include <machine/endian.h>
|
#include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
|
|||||||
Reference in New Issue
Block a user