summaryrefslogtreecommitdiff
path: root/devel/dconf/patches/patch-ab
blob: 068b7ef371b57843db3fd64ca85db1eb8dbddcab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$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);