From: Amos Jeffries Date: Fri, 8 Apr 2011 12:31:09 +0000 (+1200) Subject: Portability: and dirent_t also only matters for non-GCC. X-Git-Tag: take06~27^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bbbf111ac057e922bbcffcfbd7751464daff526;p=thirdparty%2Fsquid.git Portability: and dirent_t also only matters for non-GCC. --- diff --git a/compat/compat_shared.h b/compat/compat_shared.h index d2cd487335..b92d3ace30 100644 --- a/compat/compat_shared.h +++ b/compat/compat_shared.h @@ -55,14 +55,14 @@ extern void (*failure_notify) (const char *); /* The structure dirent also varies between 64-bit and 32-bit environments. * Define our own dirent_t type for consistent simple internal use. + * NP: GCC seems not to care about the type naming differences. */ -#if defined(__USE_FILE_OFFSET64) +#if defined(__USE_FILE_OFFSET64) && !defined(__GNUC__) #define dirent_t struct dirent64 #else #define dirent_t struct dirent #endif - /* * Filedescriptor limits in the different select loops *