diff options
author | Winfried Ritsch <ritsch@users.sourceforge.net> | 2005-05-03 07:18:08 +0000 |
---|---|---|
committer | Winfried Ritsch <ritsch@users.sourceforge.net> | 2005-05-03 07:18:08 +0000 |
commit | f3f3f15d90ae9c0a8fec183efdfd0dcb8bd054eb (patch) | |
tree | 2e607ed794800edd3da1f95630f44c9f9550d7e2 /socket.h |
This commit was generated by cvs2svn to compensate for changes in r2884,HEADsvn2git-rootsvn2git-headexternals/iem/iemstream
which included commits to RCS files with non-trunk default branches.
svn path=/trunk/externals/iem/iemstream/; revision=2885
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/socket.h b/socket.h new file mode 100644 index 0000000..ccdb60c --- /dev/null +++ b/socket.h @@ -0,0 +1,21 @@ +#ifndef __SOCKET_H +#define __SOCKET_H + +#ifdef _WIN32 + #include <io.h> + #include <winsock.h> +#else + #include <sys/socket.h> + #include <netinet/in.h> + #include <netinet/tcp.h> + #include <arpa/inet.h> + #include <netdb.h> + #include <unistd.h> + + #define closesocket close + #define SOCKET int + #define INVALID_SOCKET -1 + #define SOCKET_ERROR -1 +#endif + +#endif |