[glib: 1/2] gio: Don't redefine GKqueueFileMonitor



commit 612c450bd47639efccbbe2c38ba187bbbf3504c9
Author: Ryan Schmidt <git ryandesign com>
Date:   Fri Aug 31 09:52:29 2018 -0500

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]