summary refs log tree commit diff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9bb5912..38c5e0a 100644
--- a/common.h
+++ b/common.h
@@ -14,7 +14,13 @@
 #include <net/if.h>
 #include <fcntl.h>
 
+#ifdef __linux__
 #include <linux/if_tun.h>
+#elif __OpenBSD__
+#include <sys/stat.h>
+#else
+#error "unsupported system"
+#endif
 
 #include "shorttypes.h"
 #include "sponge-bob.h"