Changeset 4633:d3571af94e9d in roaraudio for libroaross


Ignore:
Timestamp:
11/29/10 20:21:32 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

simple workaround for clang inlining of *stat()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r4487 r4633  
    180180 int     (*open64)(const char *__file, int __oflag, ...); 
    181181 int     (*creat)(const char *_CREAT_ARG_PATHNAME, mode_t mode); 
     182#ifndef __clang__ 
    182183 int     (*stat)(const char *path, struct stat *buf); 
    183184 int     (*fstat)(int filedes, struct stat *buf); 
    184185 int     (*lstat)(const char *path, struct stat *buf); 
     186#endif 
    185187} _os; 
    186188 
     
    308310 _os.open64 = dlsym(REAL_LIBC, "open64"); 
    309311 _os.creat  = dlsym(REAL_LIBC, "creat"); 
     312#ifndef __clang__ 
    310313 _os.stat   = dlsym(REAL_LIBC, "stat"); 
    311314 _os.fstat  = dlsym(REAL_LIBC, "fstat"); 
    312315 _os.lstat  = dlsym(REAL_LIBC, "lstat"); 
     316#endif 
    313317} 
    314318 
     
    20322036// ------------------------------------- 
    20332037 
     2038#ifndef __clang__ 
    20342039int stat(const char *path, struct stat *buf) { 
    20352040 struct devices * ptr; 
     
    20672072 return _os.lstat(path, buf); 
    20682073} 
     2074#endif 
    20692075 
    20702076// ------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.