diff options
-rw-r--r-- | cpukit/libnetworking/kern/uipc_socket.c | 7 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/socket.h | 1 |
2 files changed, 7 insertions, 1 deletions
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 <sys/signalvar.h> #include <sys/sysctl.h> #include <limits.h> +#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. |