summaryrefslogtreecommitdiffstats
path: root/cpukit/shttpd/compat_unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/shttpd/compat_unix.h')
-rw-r--r--cpukit/shttpd/compat_unix.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/cpukit/shttpd/compat_unix.h b/cpukit/shttpd/compat_unix.h
new file mode 100644
index 0000000000..67c935faaf
--- /dev/null
+++ b/cpukit/shttpd/compat_unix.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com>
+ * All rights reserved
+ *
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * Sergey Lyubka wrote this file. As long as you retain this notice you
+ * can do whatever you want with this stuff. If we meet some day, and you think
+ * this stuff is worth it, you can buy me a beer in return.
+ */
+
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <sys/select.h>
+#include <sys/mman.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <sys/time.h>
+
+#include <pwd.h>
+#include <unistd.h>
+#include <dirent.h>
+#include <dlfcn.h>
+#define SSL_LIB "libssl.so"
+#define DIRSEP '/'
+#define IS_DIRSEP_CHAR(c) ((c) == '/')
+#define O_BINARY 0
+#define closesocket(a) close(a)
+#define ERRNO errno
+#define NO_GUI
+
+#define InitializeCriticalSection(x) /* FIXME UNIX version is not MT safe */
+#define EnterCriticalSection(x)
+#define LeaveCriticalSection(x)