__h_errno_location.c 428 B

1234567891011121314151617181920
  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. #define __FORCE_GLIBC
  7. #include <features.h>
  8. #include <netdb.h>
  9. #undef h_errno
  10. extern int h_errno;
  11. libc_hidden_proto(h_errno)
  12. libc_hidden_proto(__h_errno_location)
  13. int * weak_const_function __h_errno_location (void)
  14. {
  15. return &h_errno;
  16. }
  17. libc_hidden_weak(__h_errno_location)