Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/db/db Fix the build for ancient (rhel5) systems tha...



details:   https://anonhg.NetBSD.org/src/rev/0cb358989037
branches:  trunk
changeset: 338349:0cb358989037
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 19 13:20:52 2015 +0000

description:
Fix the build for ancient (rhel5) systems that don't have O_CLOEXEC
XXX: pullup-7

diffstat:

 lib/libc/db/db/db.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1da578e4ab01 -r 0cb358989037 lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c       Tue May 19 12:17:53 2015 +0000
+++ b/lib/libc/db/db/db.c       Tue May 19 13:20:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db.c,v 1.17 2014/12/22 17:01:42 christos Exp $ */
+/*     $NetBSD: db.c,v 1.18 2015/05/19 13:20:52 christos Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.17 2014/12/22 17:01:42 christos Exp $");
+__RCSID("$NetBSD: db.c,v 1.18 2015/05/19 13:20:52 christos Exp $");
 
 #include "namespace.h"
 #include <sys/types.h>
@@ -51,6 +51,10 @@
 __weak_alias(dbopen,_dbopen)
 #endif
 
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
 DB *
 dbopen(const char *fname, int flags, mode_t mode, DBTYPE type,
     const void *openinfo)



Home | Main Index | Thread Index | Old Index