Module Name:    src
Committed By:   martin
Date:           Tue May 19 14:14:53 UTC 2015

Modified Files:
        src/lib/libc/db/db [netbsd-7]: db.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.16.40.1 -r1.16.40.2 src/lib/libc/db/db/db.c

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

Modified files:

Index: src/lib/libc/db/db/db.c
diff -u src/lib/libc/db/db/db.c:1.16.40.1 src/lib/libc/db/db/db.c:1.16.40.2
--- src/lib/libc/db/db/db.c:1.16.40.1	Tue May 19 05:11:58 2015
+++ src/lib/libc/db/db/db.c	Tue May 19 14:14:52 2015
@@ -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 @@ static int __dberr(void);
 __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)

Reply via email to