diff options
-rw-r--r-- | libgpsd_core.c | 5 | ||||
-rw-r--r-- | timehint.c | 1 |
2 files changed, 5 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" @@ -24,6 +24,7 @@ #include <sys/stat.h> #include <sys/wait.h> #include <sys/socket.h> +#include <time.h> #include <unistd.h> #include "timespec.h" |