pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libuuid Fix build failure on platforms where O_C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ecc91f467826
branches:  trunk
changeset: 634193:ecc91f467826
user:      pho <pho%pkgsrc.org@localhost>
date:      Sun May 11 04:59:07 2014 +0000

description:
Fix build failure on platforms where O_CLOEXEC is not available (e.g. MacOS X < 10.7)

diffstat:

 devel/libuuid/distinfo                      |   3 ++-
 devel/libuuid/patches/patch-lib_randutils.c |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 8f2156329487 -r ecc91f467826 devel/libuuid/distinfo
--- a/devel/libuuid/distinfo    Sun May 11 02:25:34 2014 +0000
+++ b/devel/libuuid/distinfo    Sun May 11 04:59:07 2014 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2014/05/05 20:14:55 adam Exp $
+$NetBSD: distinfo,v 1.6 2014/05/11 04:59:07 pho Exp $
 
 SHA1 (util-linux-2.24.2.tar.xz) = 4d2159b2420b8090b31f7198ff9d392a5b3cf0ff
 RMD160 (util-linux-2.24.2.tar.xz) = 7db147ba5545aadef19920815b6461001afb1f4e
 Size (util-linux-2.24.2.tar.xz) = 3586580 bytes
 SHA1 (patch-aa) = 7e59f46e346e2b6e09dc4853215b95546f9c792c
 SHA1 (patch-ab) = 160c13ca5ff36c4ed78aaa9bd3b4d270a5a8b847
+SHA1 (patch-lib_randutils.c) = 5cab5d27a4936478c55c8d11dc002df9a0a41962
diff -r 8f2156329487 -r ecc91f467826 devel/libuuid/patches/patch-lib_randutils.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuuid/patches/patch-lib_randutils.c       Sun May 11 04:59:07 2014 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-lib_randutils.c,v 1.1 2014/05/11 04:59:07 pho Exp $
+
+O_CLOEXEC is not available on every platform (e.g. MacOS X < 10.7). It
+was introduced in POSIX 2008.
+
+--- lib/randutils.c.orig       2014-04-23 13:28:29.000000000 +0000
++++ lib/randutils.c
+@@ -28,6 +28,10 @@
+ THREAD_LOCAL unsigned short ul_jrand_seed[3];
+ #endif
+ 
++#if !defined(O_CLOEXEC)
++#define O_CLOEXEC 0
++#endif
++
+ int random_get_fd(void)
+ {
+       int i, fd;



Home | Main Index | Thread Index | Old Index