summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-05-08 07:30:21 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-05-08 07:30:21 +0000
commit45717e8ed88bed4bdd69dde611e74cdcdb40157a (patch)
tree16ae50d85c0011b5372a1ff4e1ea44f4482fefc3 /cpukit/libnetworking
parentPartial update from FreeBSD. (diff)
downloadrtems-45717e8ed88bed4bdd69dde611e74cdcdb40157a.tar.bz2
Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/sys/socket.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h
index e52f975577..88ac33d9c7 100644
--- a/cpukit/libnetworking/sys/socket.h
+++ b/cpukit/libnetworking/sys/socket.h
@@ -39,10 +39,19 @@
#include <sys/cdefs.h>
-#if defined(__rtems__)
-/* RTEMS doesn't have FreeBSD's sys/_types.h machinery. */
-typedef int socklen_t;
-typedef unsigned char sa_family_t;
+#ifndef _IN_PORT_T_DECLARED
+typedef unsigned short in_port_t;
+#define _IN_PORT_T_DECLARED
+#endif
+
+#ifndef _SA_FAMILY_T_DECLARED
+typedef unsigned char sa_family_t;
+#define _SA_FAMILY_T_DECLARED
+#endif
+
+#ifndef _SOCKLEN_T_DECLARED
+typedef int socklen_t;
+#define _SOCKLEN_T_DECLARED
#endif
/*