version 0.1.6
[fms.git] / libs / shttpd / compat_unix.h
1 /*
2  * Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com>
3  * All rights reserved
4  *
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.
9  */
10
11 #include <sys/wait.h>
12 #include <sys/socket.h>
13 #include <sys/select.h>
14 #include <sys/mman.h>
15 #include <netinet/in.h>
16 #include <arpa/inet.h>
17 #include <sys/time.h>
18
19 #include <pwd.h>
20 #include <unistd.h>
21 #include <dirent.h>
22 #include <dlfcn.h>
23 #define SSL_LIB                         "libssl.so"
24 #define DIRSEP                          '/'
25 #define IS_DIRSEP_CHAR(c)               ((c) == '/')
26 #define O_BINARY                        0
27 #define closesocket(a)                  close(a)
28 #define ERRNO                           errno
29 #define NO_GUI
30
31 #define InitializeCriticalSection(x)    /* FIXME UNIX version is not MT safe */
32 #define EnterCriticalSection(x)
33 #define LeaveCriticalSection(x)