mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
From a76a010bfed94b17f03385312e1821d4323866e7 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 ca78a02..5dbb773 100644
|
|
--- a/aclocal.m4
|
|
+++ b/aclocal.m4
|
|
@@ -1128,7 +1128,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 5598ec2..388697c 100644
|
|
--- a/tcpdump.c
|
|
+++ b/tcpdump.c
|
|
@@ -2007,11 +2007,13 @@ compress_savefile(const char *filename)
|
|
* Child process.
|
|
* 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) failed: %s\n",
|
|
--
|
|
2.7.0
|
|
|