[git commit 0_9_30] inet.h: mark inet_ntoa_r as uClibc specific

Peter S. Mazinger ps.m at gmx.net
Thu Dec 17 12:42:26 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=8fd180bca753c0dc9ae196276149bd1daea859fc
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30

Disable some prototypes of unimplemented funcs.

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/arpa/inet.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index 02233d4..90afb56 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,8 +52,10 @@ extern in_addr_t inet_network (__const char *__cp) __THROW;
 /* Convert Internet number in IN to ASCII representation.  The return value
    is a pointer to an internal array containing the string.  */
 extern char *inet_ntoa (struct in_addr __in) __THROW;
+#ifdef __UCLIBC__
 /* Recursion-safe flavor */
 extern char *inet_ntoa_r (struct in_addr __in, char *__buf) __THROW;
+#endif
 
 /* Convert from presentation format of an Internet number in buffer
    starting at CP to the binary network format and store result for
@@ -75,6 +77,7 @@ extern __const char *inet_ntop (int __af, __const void *__restrict __cp,
    into binary data and store the result in the structure INP.  */
 extern int inet_aton (__const char *__cp, struct in_addr *__inp) __THROW;
 
+#if 0
 /* Format a network number NET into presentation format and place result
    in buffer starting at BUF with length of LEN bytes.  */
 extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
@@ -102,6 +105,7 @@ extern unsigned int inet_nsap_addr (__const char *__cp,
 extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp,
 			     char *__buf) __THROW;
 #endif
+#endif
 
 __END_DECLS
 
-- 
1.6.3.3



More information about the uClibc-cvs mailing list