blob: 7e8825af0ccd554a4701b9f783b3b485591d5107 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001// 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