From 464b005c97aeffc74a7eb59f452bbc5e90032cb3 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Wed, 24 Oct 2012 18:34:07 +0200 Subject: [PATCH] Fix compilation on Unix with GLib 2.24 or older --- src/common/dcc.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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[] = {