pkgsrc/devel/dconf/patches/patch-ab
drochner d416263eb7 add dconf-0.5.1, a backend for the "gsettings" part of GConf which
is needed to store data persistently
(The code is still crappy, but it will be needed by some gnome>=2.32
applications which switched to "gsettings".)
2010-11-16 19:47:07 +00:00

14 lines
459 B
Text

$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);