brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame^] | 1 | // Includes the socket libraries under vxworks and linux. |
| 2 | // Defines a lame_unconst macro for the vxworks functions that need it. |
| 3 | |
| 4 | #ifndef __VXWORKS__ |
| 5 | #include <sys/types.h> |
| 6 | #include <sys/socket.h> |
| 7 | #include <sys/select.h> |
| 8 | #define lame_unconst(a) a |
| 9 | #else |
| 10 | #include <inetLib.h> |
| 11 | #include <sockLib.h> |
| 12 | #include <selectLib.h> |
| 13 | // Vxworks is missing the const in a couple of its function signatures, so... |
| 14 | #define lame_unconst(a) const_cast<char *>(a) |
| 15 | #endif |
| 16 | |