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: he
Date: Tue Oct 4 07:21:30 UTC 2016
Modified Files:
pkgsrc/lang/erlang: distinfo
Added Files:
pkgsrc/lang/erlang/patches: patch-erts_emulator_sys_unix_sys.c
Log Message:
Don't invade the implementation namespace.
There's no guarantee that __errno is free for own use.
(On NetBSD it isn't!)
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/lang/erlang/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys.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.46 pkgsrc/lang/erlang/distinfo:1.47
--- pkgsrc/lang/erlang/distinfo:1.46 Sun Oct 2 10:12:36 2016
+++ pkgsrc/lang/erlang/distinfo Tue Oct 4 07:21:30 2016
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.46 2016/10/02 10:12:36 fhajny Exp $
+$NetBSD: distinfo,v 1.47 2016/10/04 07:21:30 he Exp $
SHA1 (erlang/otp_src_19.1.tar.gz) = 9f83a442de96c075a7cd1c42ceae9e3ce44b8f76
RMD160 (erlang/otp_src_19.1.tar.gz) = 7a850068e9b46f8b6f54f83e95d2d5d09ec674e7
@@ -10,4 +10,5 @@ SHA1 (patch-ao) = e5801f2a1f1f7e8b75dc35
SHA1 (patch-ay) = f5f1accdb11e404ba4779b056228431e3080e4cd
SHA1 (patch-erts_configure) = dba8d72974e8c493cf2bb90e6b149a84dd9073da
SHA1 (patch-erts_emulator_drivers_common_inet__drv.c) = b7784e5e8e025ca75d5279a63e0cb3f74c54bd6a
+SHA1 (patch-erts_emulator_sys_unix_sys.c) = 976124f49103f994db0cd7334987f42fc5c590bc
SHA1 (patch-make_output.mk.in) = d7b3da58bfb471d52c41242e2a03d1598ce24e62
Added files:
Index: pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c
diff -u /dev/null pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c:1.1
--- /dev/null Tue Oct 4 07:21:30 2016
+++ pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys.c Tue Oct 4 07:21:30 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-erts_emulator_sys_unix_sys.c,v 1.1 2016/10/04 07:21:30 he Exp $
+
+Don't invade the implementation namespace.
+There's no guarantee that __errno is free for own use
+(on NetBSD it isn't!)
+
+--- erts/emulator/sys/unix/sys.c.orig 2016-09-20 19:11:23.000000000 +0000
++++ erts/emulator/sys/unix/sys.c
+@@ -715,13 +715,13 @@ static RETSIGTYPE suspend_signal(void)
+ static RETSIGTYPE suspend_signal(int signum)
+ #endif
+ {
+- int res, buf[1], __errno = errno;
++ int res, buf[1], save_errno = errno;
+ do {
+ res = read(sig_suspend_fds[0], buf, sizeof(int));
+ } while (res < 0 && errno == EINTR);
+
+ /* restore previous errno in case read changed it */
+- errno = __errno;
++ errno = save_errno;
+ }
+ #endif /* #ifdef ERTS_SYS_SUSPEND_SIGNAL */
+
Home |
Main Index |
Thread Index |
Old Index