aboutsummaryrefslogtreecommitdiff
path: root/src/survive_config.c
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-03-16 14:09:42 -0700
committermwturvey <michael.w.turvey@intel.com>2017-03-16 14:09:42 -0700
commit5195645bfecb4c697e3f162e1da1d51951685260 (patch)
tree4be87dc53f4ecb9c5c96cc9bb1c599112ca21077 /src/survive_config.c
parentd9412e4252c176583b5b737608acb4e60d47c00a (diff)
downloadlibsurvive-5195645bfecb4c697e3f162e1da1d51951685260.tar.gz
libsurvive-5195645bfecb4c697e3f162e1da1d51951685260.tar.bz2
zao's changes for FreeBSD
Diffstat (limited to 'src/survive_config.c')
-rw-r--r--src/survive_config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/survive_config.c b/src/survive_config.c
index 7435cc4..07b9326 100644
--- a/src/survive_config.c
+++ b/src/survive_config.c
@@ -3,7 +3,11 @@
#include <assert.h>
#include "survive_config.h"
#include <json_helpers.h>
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#else
#include <malloc.h> //for alloca
+#endif
#include <errno.h>
//#define MAX_CONFIG_ENTRIES 100