Skip to content
Snippets Groups Projects
Commit 06bc237b authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix #136.

parent e139fd62
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#if defined(linux)
#include <linux/types.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -72,6 +75,7 @@ typedef signed short s16; ...@@ -72,6 +75,7 @@ typedef signed short s16;
typedef signed int s32; typedef signed int s32;
typedef signed long long s64; typedef signed long long s64;
#if !defined(linux)
typedef u8 __u8; typedef u8 __u8;
typedef u16 __u16; typedef u16 __u16;
typedef u32 __u32; typedef u32 __u32;
...@@ -87,6 +91,7 @@ typedef u64 __be64; ...@@ -87,6 +91,7 @@ typedef u64 __be64;
typedef u16 __sum16; typedef u16 __sum16;
typedef u32 __wsum; typedef u32 __wsum;
#endif
typedef u8 bool; typedef u8 bool;
enum bool_t { enum bool_t {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment