summaryrefslogtreecommitdiff
path: root/src/qcommon/q_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/q_platform.h')
-rw-r--r--src/qcommon/q_platform.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qcommon/q_platform.h b/src/qcommon/q_platform.h
index 4d4d2856..3e9619ee 100644
--- a/src/qcommon/q_platform.h
+++ b/src/qcommon/q_platform.h
@@ -155,11 +155,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================= LINUX ===
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD_kernel__)
#include <endian.h>
+#if defined(__linux__)
#define OS_STRING "linux"
+#else
+#define OS_STRING "kFreeBSD"
+#endif
+
#define ID_INLINE inline
#define PATH_SEP '/'