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
This commit is contained in:
Ryan Schmidt 2018-08-31 09:52:29 -05:00
parent b2375471cc
commit 612c450bd4

View File

@ -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