summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 77ef2903..4aa581a7 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -69,6 +69,15 @@
 #define BIG_STR_TO_INT(x) strtoul(x,NULL,10)
 #endif
 
+/* This is practically copy-paste from gstdio.h.
+ * GStatBuf was added in 2.26. On Win32 we already use that,
+ * so we only gotta check this on Unix */
+#ifndef WIN32
+#if !GLIB_CHECK_VERSION(2,26,0)
+typedef struct stat GStatBuf;
+#endif
+#endif
+
 static char *dcctypes[] = { "SEND", "RECV", "CHAT", "CHAT" };
 
 struct dccstat_info dccstat[] = {