initial commit
[glibc.git] / debian / patches / hurd-i386 / submitted-AF_LINK.diff
1 Hurd: comment PF_LINK/AF_LINK defines
2
3 Comment out the PF_LINK and AF_LINK defines, since they are usually associated
4 with struct sockaddr_dl, which is not available on Hurd.
5
6 2012-06-22 Pino Toscano <toscano.pino@tiscali.it>
7
8 * sysdeps/mach/hurd/bits/socket.h (PF_LINK): Comment out.
9 (AF_LINK): Likewise.
10 --- a/sysdeps/mach/hurd/bits/socket.h
11 +++ b/sysdeps/mach/hurd/bits/socket.h
12 @@ -97,7 +97,7 @@ enum __socket_type
13 #define PF_HYLINK 15 /* NSC Hyperchannel protocol. */
14 #define PF_APPLETALK 16 /* Don't use this. */
15 #define PF_ROUTE 17 /* Internal Routing Protocol. */
16 -#define PF_LINK 18 /* Link layer interface. */
17 +/* #define PF_LINK 18 Link layer interface. */
18 #define PF_XTP 19 /* eXpress Transfer Protocol (no AF). */
19 #define PF_COIP 20 /* Connection-oriented IP, aka ST II. */
20 #define PF_CNT 21 /* Computer Network Technology. */
21 @@ -130,7 +130,7 @@ enum __socket_type
22 #define AF_HYLINK PF_HYLINK
23 #define AF_APPLETALK PF_APPLETALK
24 #define AF_ROUTE PF_ROUTE
25 -#define AF_LINK PF_LINK
26 +/* #define AF_LINK PF_LINK */
27 #ifdef __USE_MISC
28 # define pseudo_AF_XTP PF_XTP
29 #endif