diff options
Diffstat (limited to 'meta-oe/recipes-security/nmap/nmap-7.92/0006-Fix-build-with-libpcap-1.10.5.patch')
-rw-r--r-- | meta-oe/recipes-security/nmap/nmap-7.92/0006-Fix-build-with-libpcap-1.10.5.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/nmap/nmap-7.92/0006-Fix-build-with-libpcap-1.10.5.patch b/meta-oe/recipes-security/nmap/nmap-7.92/0006-Fix-build-with-libpcap-1.10.5.patch new file mode 100644 index 0000000000..4ee4a7295e --- /dev/null +++ b/meta-oe/recipes-security/nmap/nmap-7.92/0006-Fix-build-with-libpcap-1.10.5.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From ba7b4a8cc570f0ce154f186fbe840f0ac23b2b96 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Mon, 28 Apr 2025 10:04:46 +0800 | ||
4 | Subject: [PATCH] Fix build with libpcap 1.10.5 | ||
5 | |||
6 | Fixes: | ||
7 | In file included from /build/tmp/work/core2-64-poky-linux/nmap/7.92/recipe-sysroot/usr/include/pcap/pcap.h:130, | ||
8 | from /build/tmp/work/core2-64-poky-linux/nmap/7.92/recipe-sysroot/usr/include/pcap.h:43, | ||
9 | from tcpip.h:72, | ||
10 | from nse_nsock.cc:4: | ||
11 | nse_nsock.cc:36:3: error: expected identifier before 'int' | ||
12 | 36 | PCAP_SOCKET = lua_upvalueindex(3), /* pcap socket metatable */ | ||
13 | | ^~~~~~~~~~~ | ||
14 | nse_nsock.cc:36:3: error: expected '}' before 'int' | ||
15 | nse_nsock.cc:33:6: note: to match this '{' | ||
16 | 33 | enum { | ||
17 | | ^ | ||
18 | nse_nsock.cc:36:15: error: expected unqualified-id before '=' token | ||
19 | 36 | PCAP_SOCKET = lua_upvalueindex(3), /* pcap socket metatable */ | ||
20 | | ^ | ||
21 | nse_nsock.cc:40:1: error: expected declaration before '}' token | ||
22 | 40 | }; | ||
23 | | ^ | ||
24 | |||
25 | Upstream-Status: Pending | ||
26 | |||
27 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
28 | --- | ||
29 | nse_nsock.cc | 2 ++ | ||
30 | 1 file changed, 2 insertions(+) | ||
31 | |||
32 | diff --git a/nse_nsock.cc b/nse_nsock.cc | ||
33 | index 75ddeb6..a3c5186 100644 | ||
34 | --- a/nse_nsock.cc | ||
35 | +++ b/nse_nsock.cc | ||
36 | @@ -29,6 +29,8 @@ | ||
37 | |||
38 | #define DEFAULT_TIMEOUT 30000 | ||
39 | |||
40 | +#undef PCAP_SOCKET | ||
41 | + | ||
42 | /* Upvalues for library variables */ | ||
43 | enum { | ||
44 | NSOCK_POOL = lua_upvalueindex(1), | ||
45 | -- | ||
46 | 2.34.1 | ||
47 | |||