__h_errno_location.c 353 B

12345678910111213141516171819
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <features.h>
  7. #include <netdb.h>
  8. #ifndef __UCLIBC_HAS_TLS__
  9. # undef h_errno
  10. extern int h_errno;
  11. #endif
  12. int *__h_errno_location(void)
  13. {
  14. return &h_errno;
  15. }
  16. libc_hidden_def(__h_errno_location)