erlang: Fix _XOPEN_SOURCE configuration.
This commit is contained in:
parent
4ef2dcb1c0
commit
057a18c0dc
2 changed files with 9 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.58 2018/07/03 11:01:21 fhajny Exp $
|
||||
$NetBSD: distinfo,v 1.59 2018/07/26 16:01:45 jperkin Exp $
|
||||
|
||||
SHA1 (erlang/otp_src_21.0.tar.gz) = b9ba0909aef16f038b8c75e4d7fd0993ae4e3beb
|
||||
RMD160 (erlang/otp_src_21.0.tar.gz) = 6a13f1f49fddeb4bb0d5567ffe31ab232d80855b
|
||||
|
@ -10,6 +10,6 @@ SHA1 (patch-erts_configure) = dba8d72974e8c493cf2bb90e6b149a84dd9073da
|
|||
SHA1 (patch-erts_emulator_drivers_common_inet__drv.c) = b7784e5e8e025ca75d5279a63e0cb3f74c54bd6a
|
||||
SHA1 (patch-erts_emulator_sys_unix_sys__uds.c) = a165f977221acc8aba2ef30ca23d149a10af060a
|
||||
SHA1 (patch-erts_etc_unix_run__erl.c) = 9e2377ceba5021eaa2f0c729600df499954d134e
|
||||
SHA1 (patch-erts_lib__src_common_erl__printf.c) = 913d582a04451bcd2d330f05c49d8bf867f4a051
|
||||
SHA1 (patch-erts_lib__src_common_erl__printf.c) = 55decad8ca2266feddb310ab5d00394d717afca7
|
||||
SHA1 (patch-lib_crypto_c__src_Makefile.in) = 0ab1db36c03999524e933d60f913ff5608b0622e
|
||||
SHA1 (patch-make_output.mk.in) = d7b3da58bfb471d52c41242e2a03d1598ce24e62
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
$NetBSD: patch-erts_lib__src_common_erl__printf.c,v 1.1 2018/07/03 11:01:21 fhajny Exp $
|
||||
$NetBSD: patch-erts_lib__src_common_erl__printf.c,v 1.2 2018/07/26 16:01:45 jperkin Exp $
|
||||
|
||||
Unlock putc_unlocked in stdio.h.
|
||||
Set _XOPEN_SOURCE correctly on SunOS.
|
||||
|
||||
--- erts/lib_src/common/erl_printf.c.orig 2018-06-19 07:07:55.000000000 +0000
|
||||
+++ erts/lib_src/common/erl_printf.c
|
||||
@@ -27,6 +27,10 @@
|
||||
@@ -27,6 +27,14 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
+#ifdef __sun
|
||||
+#if __STDC_VERSION__-0 < 199901L
|
||||
+#define _XOPEN_SOURCE 500
|
||||
+#else
|
||||
+#define _XOPEN_SOURCE 600
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in a new issue