public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Remove FreeBSD specifics from RTEMS <arpa/inet.h>
@ 2017-06-12 12:05 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2017-06-12 12:05 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0fbd27dd1efeb873c02dd14d6202385a3d3b2ba6

commit 0fbd27dd1efeb873c02dd14d6202385a3d3b2ba6
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Jun 12 08:38:56 2017 +0200

    Remove FreeBSD specifics from RTEMS <arpa/inet.h>
    
    For whatever reason FreeBSD renames several functions provided by
    <arpa/inet.h> and uses weak references to provide the standard function
    names.  This causes problems on targets lacking proper support for weak
    references.  We do not need this function renaming on RTEMS.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/include/arpa/inet.h | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/arpa/inet.h b/newlib/libc/sys/rtems/include/arpa/inet.h
index d71c927..91e3a82 100644
--- a/newlib/libc/sys/rtems/include/arpa/inet.h
+++ b/newlib/libc/sys/rtems/include/arpa/inet.h
@@ -112,27 +112,6 @@ struct in_addr {
 #define	_STRUCT_IN_ADDR_DECLARED
 #endif
 
-/* XXX all new diversions!! argh!! */
-#if __BSD_VISIBLE
-#define	inet_addr		__inet_addr
-#define	inet_aton		__inet_aton
-#define	inet_lnaof		__inet_lnaof
-#define	inet_makeaddr		__inet_makeaddr
-#define	inet_neta		__inet_neta
-#define	inet_netof		__inet_netof
-#define	inet_network		__inet_network
-#define	inet_net_ntop		__inet_net_ntop
-#define	inet_net_pton		__inet_net_pton
-#define	inet_cidr_ntop		__inet_cidr_ntop
-#define	inet_cidr_pton		__inet_cidr_pton
-#define	inet_ntoa		__inet_ntoa
-#define	inet_ntoa_r		__inet_ntoa_r
-#define	inet_pton		__inet_pton
-#define	inet_ntop		__inet_ntop
-#define	inet_nsap_addr		__inet_nsap_addr
-#define	inet_nsap_ntoa		__inet_nsap_ntoa
-#endif /* __BSD_VISIBLE */
-
 __BEGIN_DECLS
 #ifndef _BYTEORDER_PROTOTYPED
 #define	_BYTEORDER_PROTOTYPED


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-12 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 12:05 [newlib-cygwin] Remove FreeBSD specifics from RTEMS <arpa/inet.h> Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).