pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/erlang



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu May 25 10:14:00 UTC 2023

Modified Files:
        pkgsrc/lang/erlang: distinfo
Added Files:
        pkgsrc/lang/erlang/patches:
            patch-erts_emulator_nifs_unix_unix__socket__syncio.c

Log Message:
erlang: Fix build on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 pkgsrc/lang/erlang/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/erlang/patches/patch-erts_emulator_nifs_unix_unix__socket__syncio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/erlang/distinfo
diff -u pkgsrc/lang/erlang/distinfo:1.104 pkgsrc/lang/erlang/distinfo:1.105
--- pkgsrc/lang/erlang/distinfo:1.104   Tue May 23 21:55:50 2023
+++ pkgsrc/lang/erlang/distinfo Thu May 25 10:14:00 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.104 2023/05/23 21:55:50 wiz Exp $
+$NetBSD: distinfo,v 1.105 2023/05/25 10:14:00 jperkin Exp $
 
 BLAKE2s (erlang-26.0.tar.gz) = 21ebc9cedda563a8ad64923a33362b9663bf45eb60ccfbecaad0151f671a6eed
 SHA512 (erlang-26.0.tar.gz) = 732e259f2018102b62a5d8076953a6a78d3e1f1714edde2c306fe863e5377b9a7f87052e03e92df93eea270a608b29ab4e22d5841d1314f9a532dac4aeff5436
@@ -6,6 +6,7 @@ Size (erlang-26.0.tar.gz) = 61355457 byt
 SHA1 (patch-ab) = 9d1e33ab3660b5cf0faa2b74129158b71aae408f
 SHA1 (patch-ay) = 21dc0a123ae0d6f8e86f3fb9ffaf66e26361172b
 SHA1 (patch-erts_emulator_drivers_common_inet__drv.c) = dbe72306aac6be0cec09f45869ff077f1bab1e68
+SHA1 (patch-erts_emulator_nifs_unix_unix__socket__syncio.c) = f00f0e9226cf700cdd338d9fa087ab399a90855f
 SHA1 (patch-erts_emulator_sys_unix_sys__uds.c) = ee131143c177b2bc1453d94097cbf6b3d3cfb899
 SHA1 (patch-erts_etc_unix_run__erl.c) = b888aaed44cab4eea87474f7f02adba1f904e033
 SHA1 (patch-erts_lib__src_common_erl__printf.c) = e156722b0617a4a9eb1eb7ea63365cb52ff2e2c9

Added files:

Index: pkgsrc/lang/erlang/patches/patch-erts_emulator_nifs_unix_unix__socket__syncio.c
diff -u /dev/null pkgsrc/lang/erlang/patches/patch-erts_emulator_nifs_unix_unix__socket__syncio.c:1.1
--- /dev/null   Thu May 25 10:14:00 2023
+++ pkgsrc/lang/erlang/patches/patch-erts_emulator_nifs_unix_unix__socket__syncio.c     Thu May 25 10:14:00 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-erts_emulator_nifs_unix_unix__socket__syncio.c,v 1.1 2023/05/25 10:14:00 jperkin Exp $
+
+Expose required socket features on SunOS.
+
+--- erts/emulator/nifs/unix/unix_socket_syncio.c.orig  2023-05-15 10:36:09.000000000 +0000
++++ erts/emulator/nifs/unix/unix_socket_syncio.c
+@@ -29,6 +29,15 @@
+ #    include "config.h"
+ #endif
+ 
++#if defined(__sun) && !defined(_XOPEN_SOURCE)
++#  if (__STDC_VERSION__-0 < 199901L)
++#define _XOPEN_SOURCE 500
++#  else
++#define _XOPEN_SOURCE 600
++#  endif
++#define       __EXTENSIONS__
++#endif
++
+ #ifdef ESOCK_ENABLE
+ 
+ #ifdef HAVE_SENDFILE



Home | Main Index | Thread Index | Old Index