From 84e4162435c062b3838869d58c6bb7fe3fbed831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Fri, 28 Nov 2014 02:34:26 +0000 Subject: [PATCH] portability --- os/pl-file.c | 4 ++++ os/pl-os.c | 4 ++++ os/pl-stream.c | 1 + 3 files changed, 9 insertions(+) diff --git a/os/pl-file.c b/os/pl-file.c index 8c17db8cd..6a28ca450 100644 --- a/os/pl-file.c +++ b/os/pl-file.c @@ -47,6 +47,7 @@ handling times must be cleaned, but that not only holds for this module. #include "pl-utf8.h" #include +#include #ifdef HAVE_SYS_SELECT_H #include #endif @@ -66,6 +67,9 @@ handling times must be cleaned, but that not only holds for this module. #ifdef HAVE_BSTRING_H #include #endif +#if HAVE_ALLOCA_H +#include +#endif #define LOCK() PL_LOCK(L_FILE) /* MT locking */ #define UNLOCK() PL_UNLOCK(L_FILE) diff --git a/os/pl-os.c b/os/pl-os.c index f3aa37563..e68c9a1eb 100755 --- a/os/pl-os.c +++ b/os/pl-os.c @@ -43,6 +43,7 @@ is supposed to give the POSIX standard one. #include "pl-incl.h" #include "pl-ctype.h" #include "pl-utf8.h" +#include #include #include /* rename() and remove() prototypes */ @@ -60,6 +61,9 @@ is supposed to give the POSIX standard one. #if HAVE_SYS_STAT_H #include #endif +#if HAVE_ALLOCA_H +#include +#endif #ifdef O_XOS #define statstruct struct _stati64 #else diff --git a/os/pl-stream.c b/os/pl-stream.c index b9515ed82..457260168 100755 --- a/os/pl-stream.c +++ b/os/pl-stream.c @@ -38,6 +38,7 @@ #else #include #endif +#include #if __ANDROID__ #include