Fix compilation on Unix with GLib 2.24 or older

This commit is contained in:
Berke Viktor 2012-10-24 18:34:07 +02:00
parent aa917d568f
commit 464b005c97
1 changed files with 9 additions and 0 deletions

View File

@ -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[] = {