0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 20:27:08 +00:00
termux-packages/packages/nmap/ncat-sockaddr_u.h.patch
2023-06-15 23:17:59 +09:00

15 lines
356 B
Diff

--- a/ncat/sockaddr_u.h
+++ b/ncat/sockaddr_u.h
@@ -74,6 +74,11 @@
#endif
#if HAVE_SYS_UN_H
# include <sys/un.h>
+# ifndef SUN_LEN
+# include <string.h>
+# define SUN_LEN(ptr) ((sizeof(*(ptr)) - sizeof((ptr)->sun_path)) \
+ + strlen((ptr)->sun_path))
+# endif
#endif
#if HAVE_LINUX_VM_SOCKETS_H
#include <linux/vm_sockets.h>