summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicael Karlberg <bmk@erlang.org>2019-11-27 19:36:43 +0100
committerMicael Karlberg <bmk@erlang.org>2019-11-27 19:36:43 +0100
commit8a2204fa0d3b669a752201d289ddcd4c57417891 (patch)
tree15e94fe8ba808d92c5e630ad13ac3f251f9c4d63
parent28a90a039dc513a702fb2825076e8e4de1df4445 (diff)
downloaderlang-8a2204fa0d3b669a752201d289ddcd4c57417891.tar.gz
[esock] Add explicit include of linux types
On some old linux platforms the errqueue does not explicitly include the linux types include file. Therefor we (always) do this to avoid the problem of trying to figure out if we need to. OTP-16302
-rw-r--r--erts/emulator/nifs/common/socket_nif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index f8a7792c68..df3606894c 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -167,6 +167,12 @@
#include <setns.h>
#endif
#ifdef HAVE_LINUX_ERRQUEUE_H
+#include <linux/types.h> /* On some (I assume) "old" linux, *
+ * for example SLES 10 SP1, this is *
+ * not (explicitly) included by the *
+ * errqueue file. And for some reason *
+ * configure does not detect this. *
+ * So, to simplify, we include here. */
#include <linux/errqueue.h>
#include <linux/icmp.h>
#include <linux/icmpv6.h>