summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-04-21 14:42:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-28 13:10:01 +0200
commit4ba4f8218a6e84484f32a43d8b0a95759d0741ba (patch)
tree924b5b276da209ce7e14487ace41479bed14afe4
parentlibnetworking: Add <machine/_align.h> (diff)
downloadrtems-4ba4f8218a6e84484f32a43d8b0a95759d0741ba.tar.bz2
libnetworking: Hide SO_PRIVSTATE
-rw-r--r--cpukit/libnetworking/kern/uipc_socket.c7
-rw-r--r--cpukit/libnetworking/sys/socket.h1
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.