summaryrefslogtreecommitdiff
path: root/src/datatypes.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-19 20:13:43 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-19 20:13:43 +0000
commit1e12add3e66522b94a5d0eea603c15f93f7dd8cd (patch)
tree2e73a74953e4a813b75e3e22d8da5b230e34f2a2 /src/datatypes.h
parentsome cleanup (diff)
started to implement windows tunDevice
updated LogErrno to support Windows Error Codes
Diffstat (limited to 'src/datatypes.h')
-rw-r--r--src/datatypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datatypes.h b/src/datatypes.h
index 7025528..27fac4b 100644
--- a/src/datatypes.h
+++ b/src/datatypes.h
@@ -54,8 +54,11 @@ typedef u_int16_t mux_t;
#ifndef _MSC_VER
#define ATTR_PACKED __attribute__((__packed__))
+typedef int system_error_t;
#else
+#include <windows.h>
#define ATTR_PACKED
+typedef DWORD system_error_t;
#endif
#endif