From 6bbbf111ac057e922bbcffcfbd7751464daff526 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 9 Apr 2011 00:31:09 +1200 Subject: [PATCH] Portability: and dirent_t also only matters for non-GCC. --- compat/compat_shared.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 * -- 2.47.3