Changeset 86c1004 in rtems


Ignore:
Timestamp:
Jun 12, 2017, 11:56:40 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
74a13c8
Parents:
7b0c74ff
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/17 11:56:40)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/17 12:03:54)
Message:

network: Remove FreeBSD specific hack

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.lk:x

Update #2833.

Location:
cpukit/libnetworking
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/include/arpa/inet.h

    r7b0c74ff r86c1004  
    113113#endif
    114114
    115 /* XXX all new diversions!! argh!! */
    116 #if __BSD_VISIBLE
    117 #define inet_addr               __inet_addr
    118 #define inet_aton               __inet_aton
    119 #define inet_lnaof              __inet_lnaof
    120 #define inet_makeaddr           __inet_makeaddr
    121 #define inet_neta               __inet_neta
    122 #define inet_netof              __inet_netof
    123 #define inet_network            __inet_network
    124 #define inet_net_ntop           __inet_net_ntop
    125 #define inet_net_pton           __inet_net_pton
    126 #define inet_cidr_ntop          __inet_cidr_ntop
    127 #define inet_cidr_pton          __inet_cidr_pton
    128 #define inet_ntoa               __inet_ntoa
    129 #define inet_ntoa_r             __inet_ntoa_r
    130 #define inet_pton               __inet_pton
    131 #define inet_ntop               __inet_ntop
    132 #define inet_nsap_addr          __inet_nsap_addr
    133 #define inet_nsap_ntoa          __inet_nsap_ntoa
    134 #endif /* __BSD_VISIBLE */
    135 
    136115__BEGIN_DECLS
    137116#ifndef _BYTEORDER_PROTOTYPED
  • cpukit/libnetworking/libc/inet_addr.c

    r7b0c74ff r86c1004  
    203203}
    204204
     205#ifndef __rtems__
    205206/*
    206207 * Weak aliases for applications that use certain private entry points,
     
    211212#undef inet_aton
    212213__weak_reference(__inet_aton, inet_aton);
     214#endif /* __rtems__ */
    213215
    214216/*! \file */
  • cpukit/libnetworking/libc/inet_ntoa.c

    r7b0c74ff r86c1004  
    6868}
    6969
     70#ifndef __rtems__
    7071/*
    7172 * Weak aliases for applications that use certain private entry points,
     
    7576__weak_reference(__inet_ntoa, inet_ntoa);
    7677__weak_reference(__inet_ntoa_r, inet_ntoa_r);
     78#endif /* __rtems__ */
    7779
    7880/*! \file */
  • cpukit/libnetworking/libc/inet_ntop.c

    r7b0c74ff r86c1004  
    195195}
    196196
     197#ifndef __rtems__
    197198/*
    198199 * Weak aliases for applications that use certain private entry points,
     
    201202#undef inet_ntop
    202203__weak_reference(__inet_ntop, inet_ntop);
     204#endif /* __rtems__ */
    203205
    204206/*! \file */
  • cpukit/libnetworking/libc/res_stubs.c

    r7b0c74ff r86c1004  
    4444#include <sys/cdefs.h>
    4545
     46#ifndef __rtems__
    4647__weak_reference(__inet_addr, inet_addr);
    4748__weak_reference(__inet_aton, inet_aton);
     
    5859__weak_reference(__inet_nsap_addr, inet_nsap_addr);
    5960__weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa);
     61#endif /* __rtems__ */
    6062
    6163__weak_reference(__sym_ston, sym_ston);
Note: See TracChangeset for help on using the changeset viewer.