[glibc/release/2.43/master] Hurd: comment PF_ROUTE/AF_ROUTE defines

Sam James via Glibc-cvs <[email protected]> Mon, 8 Jun 2026 18:10:45 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=446f708e4cf8845536549a7fa414142fc89c6887

commit 446f708e4cf8845536549a7fa414142fc89c6887
Author: Samuel Thibault <[email protected]>
Date:   Tue May 26 22:28:49 2026 +0200

    Hurd: comment PF_ROUTE/AF_ROUTE defines
    
    Comment out the PF_ROUTE and AF_ROUTE defines, since they would be used for
    PF_ROUTE setsockopts, which are not available on Hurd.
    
    (cherry picked from commit ec98b25af5ae4b6dff24388ce10d0e64a7671363)

Diff:
---
 sysdeps/mach/hurd/bits/socket.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/mach/hurd/bits/socket.h b/sysdeps/mach/hurd/bits/socket.h
index 4a5807e619..fb73dea063 100644
--- a/sysdeps/mach/hurd/bits/socket.h
+++ b/sysdeps/mach/hurd/bits/socket.h
@@ -95,7 +95,7 @@ enum __socket_type
 #define	PF_LAT		14	/* DEC Local Area Transport protocol.  */
 #define	PF_HYLINK	15	/* NSC Hyperchannel protocol.  */
 #define	PF_APPLETALK	16	/* Don't use this.  */
-#define	PF_ROUTE	17	/* Internal Routing Protocol.  */
+/* #define	PF_ROUTE	17	Internal Routing Protocol.  */
 /* #define	PF_LINK		18	Link layer interface.  */
 #define	PF_XTP		19	/* eXpress Transfer Protocol (no AF).  */
 #define	PF_COIP		20	/* Connection-oriented IP, aka ST II.  */
@@ -128,7 +128,7 @@ enum __socket_type
 #define	AF_LAT		PF_LAT
 #define	AF_HYLINK	PF_HYLINK
 #define	AF_APPLETALK	PF_APPLETALK
-#define	AF_ROUTE	PF_ROUTE
+/* #define	AF_ROUTE	PF_ROUTE */
 /* #define	AF_LINK		PF_LINK */
 #ifdef __USE_MISC
 # define	pseudo_AF_XTP	PF_XTP