[uClibc][PATCH] Fix uClibc compile problem due to missing INET defines

Steven J. Hill sjhill at realitydiluted.com
Tue Mar 19 15:20:53 UTC 2002


This patch adds in the defines for AI_V4MAPPEd, AI_ALL and
AI_ADDRCONFIG which prevent uClibc from compiling. I also
made a minor change to a makefile to properly clean a
directory being missed during 'make clean'. Please apply.

-Steve

diff -urN uclibc/Makefile uclibc-patched/Makefile
--- uclibc/Makefile	Tue Mar 12 09:53:06 2002
+++ uclibc-patched/Makefile	Mon Mar 18 07:47:53 2002
@@ -328,6 +328,7 @@
 	- find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
 	$(MAKE) -C test clean
 	$(MAKE) -C ldso clean
+	$(MAKE) -C libc/misc clean
 	$(MAKE) -C libc/unistd clean
 	$(MAKE) -C libc/sysdeps/linux/common clean
 	$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean
diff -urN uclibc/include/netdb.h uclibc-patched/include/netdb.h
--- uclibc/include/netdb.h	Tue Feb 26 03:32:21 2002
+++ uclibc-patched/include/netdb.h	Tue Mar 19 08:58:54 2002
@@ -441,6 +441,10 @@
 # define AI_PASSIVE	0x0001	/* Socket address is intended for `bind'.  */
 # define AI_CANONNAME	0x0002	/* Request for canonical name.  */
 # define AI_NUMERICHOST	0x0004	/* Don't use name resolution.  */
+# define AI_V4MAPPED	0x0008	/* IPv4-mapped addresses are acceptable.  */
+# define AI_ALL		0x0010	/* Return both IPv4 and IPv6 addresses.  */
+# define AI_ADDRCONFIG	0x0020	/* Use configuration of this host to choose
+				   returned address type.  */
 
 /* Error values for `getaddrinfo' function.  */
 # define EAI_BADFLAGS	  -1	/* Invalid value for `ai_flags' field.  */



More information about the uClibc mailing list