gcc doesn't protest, but it's a trap^Wa bug.

okay aja@
This commit is contained in:
espie 2017-04-18 07:17:28 +00:00
parent 5dcc912b44
commit dd60020f33
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.39 2016/03/12 23:23:38 naddy Exp $
# $OpenBSD: Makefile,v 1.40 2017/04/18 07:17:28 espie Exp $
# XXX fix building with glib2 >= 2.29 (G_CONST_RETURN is deprecated)
CFLAGS += "-DG_CONST_RETURN=const"
@ -12,8 +12,8 @@ GNOME_VERSION= 0.1.10
PKGNAME-main= ${DISTNAME}
PKGNAME-python= py-gamin-${GNOME_VERSION}
REVISION-main= 21
REVISION-python=8
REVISION-main= 22
REVISION-python=9
SHARED_LIBS += gamin-1 0.0 # .1.10
SHARED_LIBS += fam 1.0 # .0.0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-server_gam_eq_c,v 1.4 2017/04/18 07:17:28 espie Exp $
--- server/gam_eq.c.orig Tue Apr 18 02:15:26 2017
+++ server/gam_eq.c Tue Apr 18 02:15:44 2017
@@ -124,7 +124,7 @@ gam_eq_flush (gam_eq_t *eq, GamConnDataPtr conn)
{
gboolean done_work = FALSE;
if (!eq)
- return;
+ return done_work;
#ifdef GAM_EQ_VERBOSE
GAM_DEBUG(DEBUG_INFO, "gam_eq: Flushing event queue for %s\n", gam_connection_get_pidname (conn));