File: glibc-resolv-h.patch

package info (click to toggle)
netcat 1.10-47
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,676 kB
  • sloc: ansic: 1,827; sh: 796; makefile: 81
file content (17 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Summary: glibc requires an explicit <resolv.h> include.
Contributor: Decklin Foster <decklin@red-bean.com>

Index: netcat-1.10/netcat.c
===================================================================
--- netcat-1.10.orig/netcat.c
+++ netcat-1.10/netcat.c
@@ -73,6 +73,9 @@
 #include <errno.h>
 #include <signal.h>
 #include <fcntl.h>		/* O_WRONLY et al */
+#ifdef LINUX			/* Linux needs the HERE, oh well. */
+#include <resolv.h>
+#endif
 
 /* handy stuff: */
 #define SA struct sockaddr	/* socket overgeneralization braindeath */