summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kilo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kilo.c b/kilo.c
index 663e69d..c64a9ae 100644
--- a/kilo.c
+++ b/kilo.c
@@ -34,6 +34,14 @@
#define KILO_VERSION "0.0.1"
+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#endif
+
+#ifdef __linux__
+#include <features.h>
+#endif
+
#ifdef __GLIBC__
#define _POSIX_C_SOURCE 200809L
#endif