openbsd-ports/devel/dconf/patches/patch-engine_dconf-engine_c
ajacoutot 6da870657a Import dconf-0.5.1
dconf is a low-level configuration system. Its main purpose is to
provide a backend to GSettings on platforms that don't already have
configuration storage systems.

ok jasper@
2010-10-27 10:50:04 +00:00

20 lines
658 B
Plaintext

$OpenBSD: patch-engine_dconf-engine_c,v 1.1.1.1 2010/10/27 10:50:04 ajacoutot Exp $
--- engine/dconf-engine.c.orig Tue Oct 26 20:09:23 2010
+++ engine/dconf-engine.c Tue Oct 26 20:09:49 2010
@@ -144,6 +144,7 @@ dconf_engine_setup_user (DConfEngine *engine)
if (fd >= 0)
{
+#ifndef __OpenBSD__
if (posix_fallocate (fd, 0, 1) == 0)
{
engine->shm = mmap (NULL, 1, PROT_READ, MAP_SHARED, fd, 0);
@@ -152,6 +153,7 @@ dconf_engine_setup_user (DConfEngine *engine)
engine->shm = NULL;
}
+#endif
close (fd);
}
}