nmap: rename enum PCAP_SOCKET

The enum PCAP_SOCKET conflicts with the PCAP_SOCKET macro introduced in
libpcap 1.10.5. Use ifdefs to handle both old and new libpcap versions,
renaming the enum to NM_PCAP_SOCKET when the PCAP_SOCKET macro is defined.

Signed-off-by: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Jinfeng Wang
2026-04-10 15:05:08 +08:00
committed by Anuj Mittal
parent 9757d0151b
commit f3e47be00a
2 changed files with 82 additions and 0 deletions
@@ -12,6 +12,7 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \
file://0002-Fix-building-with-libc.patch \
file://0001-Make-ndiff-support-python3.patch \
file://0001-configure.ac-make-ndiff-depend-on-python3.patch \
file://nmap-rename-enum-PCAP_SOCKET.patch \
"
SRC_URI[md5sum] = "d37b75b06d1d40f27b76d60db420a1f5"