portability

This commit is contained in:
Vítor Santos Costa 2014-11-28 02:34:26 +00:00
parent 635d5166ce
commit 84e4162435
3 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,7 @@ handling times must be cleaned, but that not only holds for this module.
#include "pl-utf8.h"
#include <errno.h>
#include <stdlib.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
@ -66,6 +67,9 @@ handling times must be cleaned, but that not only holds for this module.
#ifdef HAVE_BSTRING_H
#include <bstring.h>
#endif
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
#define LOCK() PL_LOCK(L_FILE) /* MT locking */
#define UNLOCK() PL_UNLOCK(L_FILE)

View File

@ -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 <stdlib.h>
#include <math.h>
#include <stdio.h> /* rename() and remove() prototypes */
@ -60,6 +61,9 @@ is supposed to give the POSIX standard one.
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
#ifdef O_XOS
#define statstruct struct _stati64
#else

View File

@ -38,6 +38,7 @@
#else
#include <config.h>
#endif
#include <stdio.h>
#if __ANDROID__
#include <android/asset_manager.h>