summaryrefslogtreecommitdiff
path: root/erts/emulator/sys/unix/erl_unix_sys.h
diff options
context:
space:
mode:
authorRickard Green <rickard@erlang.org>2021-05-24 14:49:15 +0200
committerRickard Green <rickard@erlang.org>2021-06-14 23:38:31 +0200
commitb50792cc74963b166c6baf9d774acca05a711355 (patch)
treeab0388bff587e18b0dd87fb0d102ac9e0233d1dc /erts/emulator/sys/unix/erl_unix_sys.h
parent54242e07c979f77e9a494b13fbe93d2318afcd7c (diff)
downloaderlang-b50792cc74963b166c6baf9d774acca05a711355.tar.gz
Adapt configure scripts to autoconf 2.71 (step 1)
Replace obsolete macros and fix warnings
Diffstat (limited to 'erts/emulator/sys/unix/erl_unix_sys.h')
-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.
*/