Get rid of CT_CC_FILE.
/trunk/scripts/build/cc/gcc.sh | 52 26 26 0 ++++++++++++++++++++++++------------------------
/trunk/scripts/crosstool.sh | 1 0 1 0 -
2 files changed, 26 insertions(+), 27 deletions(-)
1 Copyright 2008 Yann E. MORIN.
3 This patch is needed to make gcc-4.3.1 able to build the Java frontend.
5 Index: uClibc/libc/inet/ifaddrs.c
6 ===================================================================
7 --- uClibc/libc/inet/ifaddrs.c (revision 23002)
8 +++ uClibc/libc/inet/ifaddrs.c (working copy)
16 #include <netinet/in.h>
17 #include <netpacket/packet.h>
18 Index: uClibc/libc/inet/ifaddrs.h
19 ===================================================================
20 --- uClibc/libc/inet/ifaddrs.h (revision 23002)
21 +++ uClibc/libc/inet/ifaddrs.h (working copy)
23 -/* ifaddrs.h -- declarations for getting network interface addresses
24 - Copyright (C) 2002 Free Software Foundation, Inc.
25 - This file is part of the GNU C Library.
27 - The GNU C Library is free software; you can redistribute it and/or
28 - modify it under the terms of the GNU Lesser General Public
29 - License as published by the Free Software Foundation; either
30 - version 2.1 of the License, or (at your option) any later version.
32 - The GNU C Library is distributed in the hope that it will be useful,
33 - but WITHOUT ANY WARRANTY; without even the implied warranty of
34 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 - Lesser General Public License for more details.
37 - You should have received a copy of the GNU Lesser General Public
38 - License along with the GNU C Library; if not, write to the Free
39 - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
45 -#include <features.h>
46 -#include <sys/socket.h>
52 -/* The `getifaddrs' function generates a linked list of these structures.
53 - Each element of the list describes one network interface. */
56 - struct ifaddrs *ifa_next; /* Pointer to the next structure. */
58 - char *ifa_name; /* Name of this network interface. */
59 - unsigned int ifa_flags; /* Flags as from SIOCGIFFLAGS ioctl. */
61 - struct sockaddr *ifa_addr; /* Network address of this interface. */
62 - struct sockaddr *ifa_netmask; /* Netmask of this interface. */
65 - /* At most one of the following two is valid. If the IFF_BROADCAST
66 - bit is set in `ifa_flags', then `ifa_broadaddr' is valid. If the
67 - IFF_POINTOPOINT bit is set, then `ifa_dstaddr' is valid.
68 - It is never the case that both these bits are set at once. */
69 - struct sockaddr *ifu_broadaddr; /* Broadcast address of this interface. */
70 - struct sockaddr *ifu_dstaddr; /* Point-to-point destination address. */
72 - /* These very same macros are defined by <net/if.h> for `struct ifaddr'.
73 - So if they are defined already, the existing definitions will be fine. */
74 -# ifndef ifa_broadaddr
75 -# define ifa_broadaddr ifa_ifu.ifu_broadaddr
78 -# define ifa_dstaddr ifa_ifu.ifu_dstaddr
81 - void *ifa_data; /* Address-specific data (may be unused). */
85 -/* Create a linked list of `struct ifaddrs' structures, one for each
86 - network interface on the host machine. If successful, store the
87 - list in *IFAP and return 0. On errors, return -1 and set `errno'.
89 - The storage returned in *IFAP is allocated dynamically and can
90 - only be properly freed by passing it to `freeifaddrs'. */
91 -extern int getifaddrs (struct ifaddrs **__ifap) __THROW;
93 -/* Reclaim the storage allocated by a previous `getifaddrs' call. */
94 -extern void freeifaddrs (struct ifaddrs *__ifa) __THROW;
98 -#endif /* ifaddrs.h */
99 Index: uClibc/libc/inet/getaddrinfo.c
100 ===================================================================
101 --- uClibc/libc/inet/getaddrinfo.c (revision 23002)
102 +++ uClibc/libc/inet/getaddrinfo.c (working copy)
105 #include <sys/utsname.h>
107 -#include "ifaddrs.h"
108 +#include <ifaddrs.h>
110 /* Experimentally off - libc_hidden_proto(memcpy) */
111 /* Experimentally off - libc_hidden_proto(memset) */
112 --- /dev/null 2008-08-04 09:44:45.624322752 +0200
113 +++ uClibc/include/ifaddrs.h 2008-08-05 09:31:20.000000000 +0200
115 +/* ifaddrs.h -- declarations for getting network interface addresses
116 + Copyright (C) 2002 Free Software Foundation, Inc.
117 + This file is part of the GNU C Library.
119 + The GNU C Library is free software; you can redistribute it and/or
120 + modify it under the terms of the GNU Lesser General Public
121 + License as published by the Free Software Foundation; either
122 + version 2.1 of the License, or (at your option) any later version.
124 + The GNU C Library is distributed in the hope that it will be useful,
125 + but WITHOUT ANY WARRANTY; without even the implied warranty of
126 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
127 + Lesser General Public License for more details.
129 + You should have received a copy of the GNU Lesser General Public
130 + License along with the GNU C Library; if not, write to the Free
131 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
135 +#define _IFADDRS_H 1
137 +#include <features.h>
138 +#include <sys/socket.h>
139 +#include <stdbool.h>
144 +/* The `getifaddrs' function generates a linked list of these structures.
145 + Each element of the list describes one network interface. */
148 + struct ifaddrs *ifa_next; /* Pointer to the next structure. */
150 + char *ifa_name; /* Name of this network interface. */
151 + unsigned int ifa_flags; /* Flags as from SIOCGIFFLAGS ioctl. */
153 + struct sockaddr *ifa_addr; /* Network address of this interface. */
154 + struct sockaddr *ifa_netmask; /* Netmask of this interface. */
157 + /* At most one of the following two is valid. If the IFF_BROADCAST
158 + bit is set in `ifa_flags', then `ifa_broadaddr' is valid. If the
159 + IFF_POINTOPOINT bit is set, then `ifa_dstaddr' is valid.
160 + It is never the case that both these bits are set at once. */
161 + struct sockaddr *ifu_broadaddr; /* Broadcast address of this interface. */
162 + struct sockaddr *ifu_dstaddr; /* Point-to-point destination address. */
164 + /* These very same macros are defined by <net/if.h> for `struct ifaddr'.
165 + So if they are defined already, the existing definitions will be fine. */
166 +# ifndef ifa_broadaddr
167 +# define ifa_broadaddr ifa_ifu.ifu_broadaddr
169 +# ifndef ifa_dstaddr
170 +# define ifa_dstaddr ifa_ifu.ifu_dstaddr
173 + void *ifa_data; /* Address-specific data (may be unused). */
177 +/* Create a linked list of `struct ifaddrs' structures, one for each
178 + network interface on the host machine. If successful, store the
179 + list in *IFAP and return 0. On errors, return -1 and set `errno'.
181 + The storage returned in *IFAP is allocated dynamically and can
182 + only be properly freed by passing it to `freeifaddrs'. */
183 +extern int getifaddrs (struct ifaddrs **__ifap) __THROW;
185 +/* Reclaim the storage allocated by a previous `getifaddrs' call. */
186 +extern void freeifaddrs (struct ifaddrs *__ifa) __THROW;
190 +#endif /* ifaddrs.h */