--- src/include/common.h.orig 2015-11-04 06:03:41 UTC +++ src/include/common.h @@ -8,13 +8,19 @@ #include #endif +#ifdef __FreeBSD__ + #include +#endif + #include #include #include #define TAB " " #define NEWLINE "\n" +#ifndef __FreeBSD__ #define uint unsigned int +#endif #define MAX(X, Y) \ (X > Y)? X: Y; @@ -41,6 +47,8 @@ #elif defined(__arm__) #define OS_NAME "Linux ARM" #endif +#elif defined(__FreeBSD__) + #define OS_NAME "FreeBSD" #endif