Source-Changes-HG archive

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

[src/netbsd-7]: src/lib/libc/db/db Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/50abc9b6dc87
branches:  netbsd-7
changeset: 799357:50abc9b6dc87
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 19 14:14:52 2015 +0000

description:
Pull up following revision(s) (requested by christos in ticket #791):
        lib/libc/db/db/db.c: revision 1.18
Fix the build for ancient (rhel5) systems that don't have O_CLOEXEC

diffstat:

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

diffs (29 lines):

diff -r 63629fcfc268 -r 50abc9b6dc87 lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c       Tue May 19 05:37:18 2015 +0000
+++ b/lib/libc/db/db/db.c       Tue May 19 14:14:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db.c,v 1.16.40.1 2015/05/19 05:11:58 snj Exp $ */
+/*     $NetBSD: db.c,v 1.16.40.2 2015/05/19 14:14:52 martin Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.16.40.1 2015/05/19 05:11:58 snj Exp $");
+__RCSID("$NetBSD: db.c,v 1.16.40.2 2015/05/19 14:14:52 martin 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