diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-08-12 01:42:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-08-12 01:42:37 +0000 |
commit | a3e59be8d1e0dbb1d2ab25c3dc4b0ad04e159ad2 (patch) | |
tree | 4e507bb1c5005fdd7180feff4fa4729ca3790a8a /socket | |
parent | 267ca16a67be70e0361c212e805d43884aee4506 (diff) | |
download | glibc-a3e59be8d1e0dbb1d2ab25c3dc4b0ad04e159ad2.tar.gz glibc-a3e59be8d1e0dbb1d2ab25c3dc4b0ad04e159ad2.tar.xz glibc-a3e59be8d1e0dbb1d2ab25c3dc4b0ad04e159ad2.zip |
Update. cvs/libc-ud-960811
Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com> * nss/nsswitch.c (__nss_configure_lookup): New function. Allows to specify services. * nss/XXX-lookup.h: Rename database variable and make global. * nss/databases.def: New file. Real names of all databases. * nss/nss.h: New file. Contains declaration useful for users and service developers. * nss/nsswitch.h: Move some declarations to nss/nss.h. * nss.h: New file. Wrapper around nss/nss.h. * nss/Makefile (headers): Add nss.h. (distributes): Add databases.h. Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com> Help the poor people with fast machines by making sure only one `ar' commands works on the library. * autolock.sh: New file. Written by Tom Tromey. * Makerules (do-ar): Call autolock.sh shell script instead of directly using `ar'. * config.make.in: Make configuration variable AUTOLOCK which gets initialized by configure. * configure.in: Define variable AUTOLOCK to point to autolock.sh script and mark it to substitute. * string/Makefile: Add -fno-builtin for tst-strlen.c, too. * elf/dl-lookup.c (_dl_lookup_symbol): Allow self-referencing. Patch by David Mosberger-Tang. Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu> * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW startup by moving Icache flush from here ... (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here. (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused. * sysdeps/alpha/divrem.h: Update comment to reflect the actual calling conventions. The code is already correct. Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu> * string/Makefile: Compile tester with -fno-builtin as we want to test our implementations, not gcc's.
Diffstat (limited to 'socket')
-rw-r--r-- | socket/sys/socket.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h index 3124de0e34..f445b4c77b 100644 --- a/socket/sys/socket.h +++ b/socket/sys/socket.h @@ -45,9 +45,11 @@ struct osockaddr /* This is the type we use for generic socket address arguments. - With GCC 2.7 and later, the funky union causes redeclarations or uses with - any of the listed types to be allowed without complaint. */ -#if (!defined (__GNUC__) || __GNUC__ < 2 || \ + With GCC 2.7 and later, the funky union causes redeclarations or + uses with any of the listed types to be allowed without complaint. + G++ 2.7 does not support transparent unions so there we want the + old-style declaration, too. */ +#if (!defined (__GNUC__) || __GNUC__ < 2 || defined(__cplusplus) || \ (__GNUC__ == 2 && __GNUC_MINOR__ < 7)) #define __SOCKADDR_ARG struct sockaddr * #define __CONST_SOCKADDR_ARG __const struct sockaddr * |