Browse Source

Move ifaddrs.h from uClibc-internal location libc/inet/ to include/, and make
it conditionally included among the installed header files depending on
UCLIBC_HAS_AI_ADDRCONFIG.

Ricard Wanderlof 15 years ago
parent
commit
7253e71055
4 changed files with 6 additions and 2 deletions
  1. 4 0
      Makefile.in
  2. 0 0
      include/ifaddrs.h
  3. 1 1
      libc/inet/getaddrinfo.c
  4. 1 1
      libc/inet/ifaddrs.c

+ 4 - 0
Makefile.in

@@ -331,6 +331,10 @@ ifneq ($(UCLIBC_HAS_CRYPT),y)
 	# Remove crypt.h since libcrypt was disabled upon request
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/crypt.h
 endif
+ifneq ($(UCLIBC_SUPPORT_AI_ADDRCONFIG),y)
+	# Remove ifaddrs.h since the corresponding functionality is disabled
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ifaddrs.h
+endif
 
 # Installs development library links.
 install_dev: install_headers

+ 0 - 0
libc/inet/ifaddrs.h → include/ifaddrs.h


+ 1 - 1
libc/inet/getaddrinfo.c

@@ -68,7 +68,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <net/if.h>
-#include "ifaddrs.h"
+#include <ifaddrs.h>
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 /* Experimentally off - libc_hidden_proto(memset) */

+ 1 - 1
libc/inet/ifaddrs.c

@@ -22,7 +22,7 @@
 #include <alloca.h>
 #include <assert.h>
 #include <errno.h>
-#include "ifaddrs.h"
+#include <ifaddrs.h>
 #include <net/if.h>
 #include <netinet/in.h>
 #include <netpacket/packet.h>