From 4ba4f8218a6e84484f32a43d8b0a95759d0741ba Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Thu, 21 Apr 2016 14:42:53 +0200 Subject: libnetworking: Hide SO_PRIVSTATE --- cpukit/libnetworking/kern/uipc_socket.c | 7 +++++++ cpukit/libnetworking/sys/socket.h | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/libnetworking/kern/uipc_socket.c b/cpukit/libnetworking/kern/uipc_socket.c index b221a377ca..a5836531c6 100644 --- a/cpukit/libnetworking/kern/uipc_socket.c +++ b/cpukit/libnetworking/kern/uipc_socket.c @@ -45,6 +45,13 @@ #include #include #include +#ifdef __rtems__ +/* + * This socket option was removed 1997 from the upstream FreeBSD network stack. + * Turn this feature into essentially dead code. + */ +#define SO_PRIVSTATE 0x1009 /* get/deny privileged state */ +#endif /* __rtems__ */ static int somaxconn = SOMAXCONN; SYSCTL_INT(_kern, KIPC_SOMAXCONN, somaxconn, CTLFLAG_RW, &somaxconn, 0, ""); diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h index 3821d8be55..85de630565 100644 --- a/cpukit/libnetworking/sys/socket.h +++ b/cpukit/libnetworking/sys/socket.h @@ -100,7 +100,6 @@ typedef __socklen_t socklen_t; #define SO_RCVTIMEO 0x1006 /* receive timeout */ #define SO_ERROR 0x1007 /* get error status and clear */ #define SO_TYPE 0x1008 /* get socket type */ -#define SO_PRIVSTATE 0x1009 /* get/deny privileged state */ /* * RTEMS addition: get and set wakeup functions. -- cgit v1.2.3