Skip to content

Instantly share code, notes, and snippets.

@dougluce
Created June 18, 2015 17:26
Show Gist options
  • Save dougluce/0428d030a5495fb40c66 to your computer and use it in GitHub Desktop.
Save dougluce/0428d030a5495fb40c66 to your computer and use it in GitHub Desktop.
diff --git a/builtin.c b/builtin.c
index 1e3f085..4baf7b6 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1,10 +1,12 @@
#define _BSD_SOURCE
#define _XOPEN_SOURCE
#include <sys/time.h>
-#ifdef WIN32
- #include <malloc.h>
-#else
- #include <alloca.h>
+#ifndef __FreeBSD__
+ #ifdef WIN32
+ #include <malloc.h>
+ #else
+ #include <alloca.h>
+ #endif
#endif
#include <assert.h>
#include <ctype.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment