From ff2aed3d2fdd3b1fe4791357f8ea06a0729566cf Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 28 Apr 2015 20:22:20 +0000
Subject: Haiku patch


diff --git a/aclocal.m4 b/aclocal.m4
index 285000d..2cd6e72 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1081,7 +1081,7 @@ AC_DEFUN(AC_LBL_LIBRARY_NET, [
 	AC_CHECK_LIB(socket, gethostbyname,
                      LIBS="-lsocket -lnsl $LIBS", , -lnsl)
     fi
-    AC_SEARCH_LIBS(socket, socket, ,
+    AC_SEARCH_LIBS(socket, socket network, ,
 	AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl))
     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
     AC_SEARCH_LIBS(putmsg, str)
diff --git a/tcpdump.c b/tcpdump.c
index 2fd1617..f8e4024 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2190,11 +2190,13 @@ compress_savefile(const char *filename)
 	/*
 	 * Set to lowest priority so that this doesn't disturb the capture
 	 */
+#ifndef __HAIKU__
 #ifdef NZERO
 	setpriority(PRIO_PROCESS, 0, NZERO - 1);
 #else
 	setpriority(PRIO_PROCESS, 0, 19);
 #endif
+#endif
 	if (execlp(zflag, zflag, filename, (char *)NULL) == -1)
 		fprintf(stderr,
 			"compress_savefile:execlp(%s, %s): %s\n",
-- 
1.8.3.4

