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/recno Change the logic from



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3df4d4c540fb
branches:  trunk
changeset: 395940:3df4d4c540fb
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Jul 16 18:23:32 2009 +0000

description:
Change the logic from

#ifdef MMAP_NOT_AVAILABLE
/* Code which uses mmap, but with a comment saying we don't want to use it */
#endif

to

#if !defined(MMAP_NOT_AVAILABLE) && 0
/* Code which uses mmap, but with a comment saying we don't want to use it */
#endif

so system without mmap() also work...

diffstat:

 pkgtools/libnbcompat/files/db/recno/rec_open.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b162f09f4c9 -r 3df4d4c540fb pkgtools/libnbcompat/files/db/recno/rec_open.c
--- a/pkgtools/libnbcompat/files/db/recno/rec_open.c    Thu Jul 16 18:12:08 2009 +0000
+++ b/pkgtools/libnbcompat/files/db/recno/rec_open.c    Thu Jul 16 18:23:32 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rec_open.c,v 1.1 2008/10/10 00:21:44 joerg Exp $       */
+/*     $NetBSD: rec_open.c,v 1.2 2009/07/16 18:23:32 abs Exp $ */
 /*     NetBSD: rec_open.c,v 1.17 2008/09/11 12:58:00 joerg Exp         */
 
 /*-
@@ -36,7 +36,7 @@
 #include <nbcompat.h>
 #include <nbcompat/cdefs.h>
 
-__RCSID("$NetBSD: rec_open.c,v 1.1 2008/10/10 00:21:44 joerg Exp $");
+__RCSID("$NetBSD: rec_open.c,v 1.2 2009/07/16 18:23:32 abs Exp $");
 
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -162,7 +162,7 @@
                        if (sb.st_size == 0)
                                F_SET(t, R_EOF);
                        else {
-#ifdef MMAP_NOT_AVAILABLE
+#if !defined(MMAP_NOT_AVAILABLE) && 0
                                /*
                                 * XXX
                                 * Mmap doesn't work correctly on many current



Home | Main Index | Thread Index | Old Index