diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-16 14:58:05 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-16 14:58:05 -0700 |
commit | a1acc3aec49faa558759c978664df9abfbd83d6e (patch) | |
tree | 7a207119b9f5d5e52899351b97bbe88f218eeffd /libgpsd_core.c | |
parent | 1b6571adbc12f856ffc96ab501df0352e7b3e04c (diff) | |
download | gpsd-a1acc3aec49faa558759c978664df9abfbd83d6e.tar.gz |
Fixups for NetBSD
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index b11d3223..377674cf 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -20,7 +20,11 @@ #include <time.h> #include <stdio.h> + +/* alloca() in stdlib.h needs __USE_MISC on Linux */ +#define __USE_MISC #include <stdlib.h> + #include <stdbool.h> #include <libgen.h> #include <math.h> @@ -37,7 +41,6 @@ #include <sys/wait.h> #include <sys/socket.h> #include <unistd.h> -#include <alloca.h> /* for alloca(), not POSIX */ #include "gpsd.h" #include "matrix.h" |