Changeset 4942:d503ecddf78d in roaraudio


Ignore:
Timestamp:
05/09/11 10:26:36 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added better check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/authfile.c

    r4938 r4942  
    5050 struct roar_authfile * ret; 
    5151 size_t magiclen = 0; 
    52 #ifdef ROAR_HAVE_STAT 
     52#if defined(ROAR_HAVE_STAT) && defined(ROAR_HAVE_H_SYS_STAT) 
    5353 struct stat filestat; 
    5454#endif 
    5555 
    5656 if ( type == ROAR_AUTHFILE_TYPE_AUTO ) { 
    57 #ifdef ROAR_HAVE_STAT 
     57#if defined(ROAR_HAVE_STAT) && defined(ROAR_HAVE_H_SYS_STAT) 
    5858  if ( stat(filename, &filestat) != 0 ) 
    5959   return NULL; 
Note: See TracChangeset for help on using the changeset viewer.