pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/db/db Define away O_EXLOCK ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/06c7fea7fe70
branches: trunk
changeset: 549154:06c7fea7fe70
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Oct 28 18:01:06 2008 +0000
description:
Define away O_EXLOCK and O_SHLOCK if they are missing.
diffstat:
pkgtools/libnbcompat/files/db/db/db.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 3741e0c6bda7 -r 06c7fea7fe70 pkgtools/libnbcompat/files/db/db/db.c
--- a/pkgtools/libnbcompat/files/db/db/db.c Tue Oct 28 17:57:36 2008 +0000
+++ b/pkgtools/libnbcompat/files/db/db/db.c Tue Oct 28 18:01:06 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db.c,v 1.1 2008/10/10 00:21:43 joerg Exp $ */
+/* $NetBSD: db.c,v 1.2 2008/10/28 18:01:06 joerg Exp $ */
/* NetBSD: db.c,v 1.16 2008/09/11 12:58:00 joerg Exp */
/*-
@@ -33,7 +33,7 @@
#include <nbcompat.h>
#include <nbcompat/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.1 2008/10/10 00:21:43 joerg Exp $");
+__RCSID("$NetBSD: db.c,v 1.2 2008/10/28 18:01:06 joerg Exp $");
#include <sys/types.h>
@@ -54,6 +54,13 @@
const void *openinfo)
{
+#ifndef O_EXLOCK
+#define O_EXLOCK 0
+#endif
+#ifndef O_SHLOCK
+#define O_SHLOCK 0
+#endif
+
#define DB_FLAGS (DB_LOCK | DB_SHMEM | DB_TXN)
#define USE_OPEN_FLAGS \
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
Home |
Main Index |
Thread Index |
Old Index