diff options
author | abs <abs@pkgsrc.org> | 2009-07-16 18:23:32 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-07-16 18:23:32 +0000 |
commit | 7b593e272900f0f2e83fed3b429f93f163c45ef8 (patch) | |
tree | a00689b03b44a09100c4fa90986803598dfc376d /pkgtools | |
parent | 3a1e74dca4a82e47433c63653fdeb55c9d4f7ce2 (diff) | |
download | pkgsrc-7b593e272900f0f2e83fed3b429f93f163c45ef8.tar.gz |
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 (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/db/recno/rec_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/files/db/recno/rec_open.c b/pkgtools/libnbcompat/files/db/recno/rec_open.c index 66b8ebeeaa9..c28909b2023 100644 --- a/pkgtools/libnbcompat/files/db/recno/rec_open.c +++ b/pkgtools/libnbcompat/files/db/recno/rec_open.c @@ -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 @@ slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) 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 |