Module Name: src
Committed By: christos
Date: Tue May 19 13:20:52 UTC 2015
Modified Files:
src/lib/libc/db/db: db.c
Log Message:
Fix the build for ancient (rhel5) systems that don't have O_CLOEXEC
XXX: pullup-7
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 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.17 src/lib/libc/db/db/db.c:1.18
--- src/lib/libc/db/db/db.c:1.17 Mon Dec 22 12:01:42 2014
+++ src/lib/libc/db/db/db.c Tue May 19 09:20:52 2015
@@ -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 @@ 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)