Browse Source

Adding <linux/time.h> for CLOCK_REALTIME define.

Asgeir Mortensen 11 years ago
parent
commit
c95f133fac
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libobs/util/platform-nix.c

+ 3 - 0
libobs/util/platform-nix.c

@@ -21,6 +21,9 @@
 #include <dlfcn.h>
 #include <unistd.h>
 #include <time.h>
+#if defined(__linux) || defined(__linux__) || defined(linux)
+#include <linux/time.h>
+#endif
 
 #include "dstr.h"
 #include "platform.h"