Ignore:
Timestamp:
25/02/2008 00:48:07 (4 years ago)
Author:
chris
Message:

Don't try to define our own dirfd() macro on platforms where interception
is impossible (such as win32) because it's not needed and fails on win32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/BoxPlatform.h

    r2054 r2093  
    166166#endif 
    167167 
    168 // Solaris has no dirfd(x) macro or function, and we need one. 
    169 // We cannot define macros with arguments directly using AC_DEFINE, 
    170 // so do it here instead of in configure.ac. 
     168// Solaris has no dirfd(x) macro or function, and we need one for 
     169// intercept tests. We cannot define macros with arguments directly  
     170// using AC_DEFINE, so do it here instead of in configure.ac. 
    171171 
    172 #if ! HAVE_DECL_DIRFD 
     172#if ! defined PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE && ! HAVE_DECL_DIRFD 
    173173        #ifdef HAVE_DIR_D_FD 
    174174                #define dirfd(x) (x)->d_fd 
Note: See TracChangeset for help on using the changeset viewer.