pkgsrc/devel/dconf/patches/patch-ab

15 lines
459 B
Text
Raw Normal View History

$NetBSD: patch-ab,v 1.1.1.1 2010/11/16 19:47:07 drochner Exp $
--- engine/dconf-engine.c.orig 2010-08-04 15:40:53.000000000 +0000
+++ engine/dconf-engine.c
@@ -144,7 +144,8 @@ dconf_engine_setup_user (DConfEngine *en
if (fd >= 0)
{
- if (posix_fallocate (fd, 0, 1) == 0)
+ ftruncate(fd, 1);
+ if (1)
{
engine->shm = mmap (NULL, 1, PROT_READ, MAP_SHARED, fd, 0);