Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-mgmt/ipcad: touchup and build fixes
- fix wrong test(1) option in bpf configure test preventing configuration to succeed when no bpf(4) device is present on the system - add a missing include to avoid undefined behaviour through homegrown artisanal offsetof(3) macro - set LICENSE PR: 265512 Approved by: vlm@lionet.info (maintainer timeout)
- Loading branch information
1 parent
15ea9b6
commit bf93a81
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- configure.orig 2022-07-30 04:13:00 UTC | ||
+++ configure | ||
@@ -5797,15 +5797,15 @@ if test ! -z "$with_psrc" ; then | ||
PSRC="$withval" | ||
elif test -c /dev/bpf0 ; then | ||
PSRC=bpf | ||
-elif test -a /usr/include/pcap.h; then | ||
+elif test -f /usr/include/pcap.h; then | ||
PSRC=pcap | ||
-elif test -a /usr/include/pcap/pcap.h; then | ||
+elif test -f /usr/include/pcap/pcap.h; then | ||
PSRC=pcap | ||
CFLAGS="$CFLAGS -I/usr/include/pcap" | ||
CPPFLAGS="$CPPFLAGS -I/usr/include/pcap" | ||
-elif test -a ${ac_default_prefix}/include/pcap.h; then | ||
+elif test -f ${ac_default_prefix}/include/pcap.h; then | ||
PSRC=pcap | ||
-elif test -a ${ac_default_prefix}/include/pcap/pcap.h; then | ||
+elif test -f ${ac_default_prefix}/include/pcap/pcap.h; then | ||
CFLAGS="$CFLAGS -I${ac_default_prefix}/include/pcap" | ||
CPPFLAGS="$CPPFLAGS -I${ac_default_prefix}/include/pcap" | ||
PSRC=pcap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- headers.h.orig 2022-07-30 04:07:13 UTC | ||
+++ headers.h | ||
@@ -32,6 +32,7 @@ | ||
#define __need_sig_atomic_t 1 | ||
#endif | ||
|
||
+#include <stddef.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> |