2
* Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com>
5
* "THE BEER-WARE LICENSE" (Revision 42):
6
* Sergey Lyubka wrote this file. As long as you retain this notice you
7
* can do whatever you want with this stuff. If we meet some day, and you think
8
* this stuff is worth it, you can buy me a beer in return.
12
#include <sys/socket.h>
13
#include <sys/select.h>
15
#include <netinet/in.h>
16
#include <arpa/inet.h>
24
#if !defined(NO_THREADS)
26
#define _beginthread(a, b, c) do { pthread_t tid; \
27
pthread_create(&tid, NULL, (void *(*)(void *))a, c); } while (0)
28
#endif /* !NO_THREADS */
30
#define SSL_LIB "libssl.so"
32
#define IS_DIRSEP_CHAR(c) ((c) == '/')
34
#define closesocket(a) close(a)