Browse Source

vxworks diff from Thomas Martin

Christian Grothoff 17 years ago
parent
commit
e73cff1fdd
3 changed files with 12 additions and 1 deletions
  1. 1 0
      AUTHORS
  2. 10 0
      src/include/platform.h
  3. 1 1
      src/include/plibc.h

+ 1 - 0
AUTHORS

@@ -11,6 +11,7 @@ Nils Durner <[email protected]>
 Heikki Lindholm <[email protected]>
 Alex Sadovsky <[email protected]>
 Greg Schohn <[email protected]>
+Thomas Martin <[email protected]>
 
 Documentation contributions also came from:
 Marco Maggi <[email protected]>

+ 10 - 0
src/include/platform.h

@@ -52,11 +52,21 @@
 #include <pthread.h>
 #include <sys/types.h>
 
+
 /* different OSes have size_t, fd_set in
    a broad range of header files;
    we just include most of them (if they
    are available) */
 
+
+#ifdef OS_VXWORKS
+#include <sockLib.h>
+#include <netinet/in.h>
+#include <stdarg.h>
+#include <sys/mman.h>
+#define RESTRICT __restrict__
+#endif
+
 #if HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif

+ 1 - 1
src/include/plibc.h

@@ -591,6 +591,6 @@ extern "C"
 
 
 #endif
-//_PLIBC_H_
+/* _PLIBC_H_ */
 
 /* end of plibc.h */