summaryrefslogtreecommitdiff
path: root/erts/emulator/sys/unix
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r--erts/emulator/sys/unix/erl_unix_sys.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h
index 832b7a09c2..0aa782f6bf 100644
--- a/erts/emulator/sys/unix/erl_unix_sys.h
+++ b/erts/emulator/sys/unix/erl_unix_sys.h
@@ -73,15 +73,9 @@
# include <sys/mman.h>
#endif
-#if TIME_WITH_SYS_TIME
+#include <time.h>
+#if HAVE_SYS_TIME_H
# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
#endif
#include <sys/times.h>
@@ -113,6 +107,10 @@
# define ERTS_HAVE_ERTS_SYS_ALIGNED_ALLOC 1
#endif
+#ifndef RETSIGTYPE
+#define RETSIGTYPE void
+#endif
+
/*
* Make sure that MAXPATHLEN is defined.
*/