diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2017-03-16 14:14:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 14:14:44 -0700 |
commit | a46654cb58a1f4e1971395a4b4364e1b5a0df8d3 (patch) | |
tree | 4be87dc53f4ecb9c5c96cc9bb1c599112ca21077 /src/survive_config.c | |
parent | d9412e4252c176583b5b737608acb4e60d47c00a (diff) | |
parent | 5195645bfecb4c697e3f162e1da1d51951685260 (diff) | |
download | libsurvive-a46654cb58a1f4e1971395a4b4364e1b5a0df8d3.tar.gz libsurvive-a46654cb58a1f4e1971395a4b4364e1b5a0df8d3.tar.bz2 |
Merge pull request #38 from mwturvey/Fix_BSD
zao's changes for FreeBSD
Diffstat (limited to 'src/survive_config.c')
-rw-r--r-- | src/survive_config.c | 4 |
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 |