(__SOCKADDR_ARG) [GCC>=2.6]: Use a typedef with the transparent_union
authorroland <roland>
Tue, 30 Aug 1994 12:49:30 +0000 (12:49 +0000)
committerroland <roland>
Tue, 30 Aug 1994 12:49:30 +0000 (12:49 +0000)
attribute.

socket/sys/socket.h

index a8842f7..6a90fda 100644 (file)
@@ -122,11 +122,11 @@ struct sockaddr
 struct sockaddr_in;
 struct sockaddr_un;
 struct sockaddr_ns;
-#define        __SOCKADDR_ARG  union { struct sockaddr *__sa;                        \
-                               struct sockaddr_in *__sa_in;                  \
-                               struct sockaddr_un *__sa_un;                  \
-                               struct sockaddr_ns *__sa_ns;                  \
-                             }
+typedef union { struct sockaddr *__sa;
+               struct sockaddr_in *__sa_in;
+               struct sockaddr_un *__sa_un;
+               struct sockaddr_ns *__sa_ns;
+             } __SOCKADDR_ARG __attribute__ ((transparent_union));
 #endif