dl-syscalls.h 417 B

1234567891011121314
  1. /* We can't use the real errno in ldso, since it has not yet
  2. * been dynamicly linked in yet. */
  3. #include "sys/syscall.h"
  4. extern int _dl_errno;
  5. #undef __set_errno
  6. #define __set_errno(X) {(_dl_errno) = (X);}
  7. #if __GNUC_PREREQ (4, 1)
  8. #warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
  9. # ifdef __always_inline
  10. # undef __always_inline
  11. # define __always_inline inline
  12. # endif
  13. #endif