summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.c b/util.c
index 2872c37..81c4ce3 100644
--- a/util.c
+++ b/util.c
@@ -1,6 +1,10 @@
#if _WIN32
#include <intrin.h>
#include <direct.h>
+#elif __unix__
+#include <unistd.h>
+#else
+#error "Unrecognized operating system."
#endif
static u8 util_popcount(u64 x) {
@@ -281,4 +285,5 @@ static void change_directory(char const *path) {
#else
chdir(path);
#endif
-} \ No newline at end of file
+}
+