From 612c450bd47639efccbbe2c38ba187bbbf3504c9 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Fri, 31 Aug 2018 09:52:29 -0500 Subject: [PATCH] gio: Don't redefine GKqueueFileMonitor Fixes build on old compilers that don't allow type redefinitions. Closes: https://gitlab.gnome.org/GNOME/glib/issues/1506 --- gio/kqueue/gkqueuefilemonitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/kqueue/gkqueuefilemonitor.c b/gio/kqueue/gkqueuefilemonitor.c index 3088296b5..67fafe1d9 100644 --- a/gio/kqueue/gkqueuefilemonitor.c +++ b/gio/kqueue/gkqueuefilemonitor.c @@ -75,7 +75,7 @@ typedef GLocalFileMonitorClass GKqueueFileMonitorClass; * * To distinguish between a directory monitor and a regular file monitor, check * whether sub_file is NULL. */ -typedef struct _GKqueueFileMonitor +struct _GKqueueFileMonitor { GLocalFileMonitor parent_instance; @@ -85,7 +85,7 @@ typedef struct _GKqueueFileMonitor GFileMonitor *fallback; GFile *fbfile; #endif -} GKqueueFileMonitor; +}; #ifdef __clang__ #pragma clang diagnostic pop