File 0480-Fix-run_erl.c-so-it-compiles-on-Solaris.patch of Package erlang
From 262e23e937690e99ee304b96fe452376cab3012f Mon Sep 17 00:00:00 2001
From: Rogier Velting <rogiervelting@gmail.com>
Date: Fri, 5 Oct 2018 15:59:26 +0200
Subject: [PATCH] Fix run_erl.c so it compiles on Solaris
The checks in place to allow this file to compile on macOS and BSD can be
extended to include Solaris.
---
erts/etc/unix/run_erl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index 725343d701..bfb3e1bd2c 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -43,10 +43,10 @@
#endif
#ifdef HAVE_WORKING_POSIX_OPENPT
# ifndef _XOPEN_SOURCE
- /* On OS X and BSD, we must leave _XOPEN_SOURCE undefined in order for
- * the prototype of vsyslog() to be included.
+ /* On OS X, BSD and Solaris, we must leave _XOPEN_SOURCE undefined in order
+ * for the prototype of vsyslog() to be included.
*/
-# if !(defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__))
+# if !(defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun))
# define _XOPEN_SOURCE 600
# endif
# endif
--
2.16.4