summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi.h')
-rw-r--r--src/uapi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/uapi.h b/src/uapi.h
index 6e3662f..c701de3 100644
--- a/src/uapi.h
+++ b/src/uapi.h
@@ -63,7 +63,16 @@
#ifndef WGUAPI_H
#define WGUAPI_H
+#ifdef __linux__
#include <linux/types.h>
+#else
+#include <stdint.h>
+typedef uint8_t __u8;
+typedef uint16_t __u16;
+typedef uint32_t __u32;
+typedef uint64_t __u64;
+typedef int32_t __s32;
+#endif
#ifdef __KERNEL__
#include <linux/time.h>
#include <linux/socket.h>