]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: and dirent_t also only matters for non-GCC.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Apr 2011 12:31:09 +0000 (00:31 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Apr 2011 12:31:09 +0000 (00:31 +1200)
compat/compat_shared.h

index d2cd4873357be45a7a27c94ecb75463dcc40ffeb..b92d3ace301141107f9735840c740c864f58a0ae 100644 (file)
@@ -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
  *