diff options
author | joerg <joerg> | 2008-10-28 18:01:06 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-10-28 18:01:06 +0000 |
commit | e1f7d330e39199be3d3cd8e6e04261577013ccfb (patch) | |
tree | 2d517c9814da7c393e1ebe24b538f9213113c1bb /pkgtools | |
parent | 0e795fe0b18381d64207e5a32098b568c6570403 (diff) | |
download | pkgsrc-e1f7d330e39199be3d3cd8e6e04261577013ccfb.tar.gz |
Define away O_EXLOCK and O_SHLOCK if they are missing.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/db/db/db.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/files/db/db/db.c b/pkgtools/libnbcompat/files/db/db/db.c index 6b762d2eb39..8eaf24cd066 100644 --- a/pkgtools/libnbcompat/files/db/db/db.c +++ b/pkgtools/libnbcompat/files/db/db/db.c @@ -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 @@ dbopen(const char *fname, int flags, mode_t mode, DBTYPE type, 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 | \ |