aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common
diff options
context:
space:
mode:
authorJonas Karlsson <[email protected]>2013-11-22 09:50:34 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:02 +0100
commit2145db903b665622ea885db175c5e606d9f840a4 (patch)
tree624962ca6df626a525edf1fe843f1cf532242725 /erts/emulator/drivers/common
parent3d24208d607501207af371098c1466758844e667 (diff)
downloadotp-2145db903b665622ea885db175c5e606d9f840a4.tar.gz
otp-2145db903b665622ea885db175c5e606d9f840a4.tar.bz2
otp-2145db903b665622ea885db175c5e606d9f840a4.zip
ose: OSE port related cleanup and fixes
Some OSE cross-chains have problems with system includes being used, so for atleast OSE specific parts we use "" instead of <>.
Diffstat (limited to 'erts/emulator/drivers/common')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index 7ef985dc41..b62e9a0306 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -99,7 +99,16 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+
+#ifndef __OSE__
+#include <ctype.h>
+#include <sys/types.h>
#include <stdlib.h>
+#else
+#include "ctype.h"
+#include "sys/types.h"
+#include "stdlib.h"
+#endif
/* Need (NON)BLOCKING macros for sendfile */
#ifndef WANT_NONBLOCKING
@@ -113,8 +122,7 @@
#include "erl_threads.h"
#include "gzio.h"
#include "dtrace-wrapper.h"
-#include <ctype.h>
-#include <sys/types.h>
+
void erl_exit(int n, char *fmt, ...);