summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2008-12-02 06:38:26 +0000
committerKhem Raj <kraj@mvista.com>2008-12-02 06:38:26 +0000
commit9c936bc66adc1d437671d9a6ecc06f15614b1942 (patch)
treebc6eb33f01444cd986131733c40ed405068f147b /libc
parentce6de0b0a945e0a9f7b415b8435a652a02c83c22 (diff)
downloaduClibc-alpine-9c936bc66adc1d437671d9a6ecc06f15614b1942.tar.bz2
uClibc-alpine-9c936bc66adc1d437671d9a6ecc06f15614b1942.tar.xz
signed-off-by: Khem Raj <raj.khem@gmail.com>
Sync from trunk.
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/internals/__h_errno_location.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
index 209dcfc9c..f4a587e96 100644
--- a/libc/misc/internals/__h_errno_location.c
+++ b/libc/misc/internals/__h_errno_location.c
@@ -1,14 +1,14 @@
-#define __FORCE_GLIBC
-#include <features.h>
-#include <netdb.h>
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
-#ifndef __UCLIBC_HAS_THREADS_NATIVE__
-#undef h_errno
-extern int h_errno;
-#endif
+#include "internal_errno.h"
+/* libc_hidden_proto(__h_errno_location) */
int * weak_const_function __h_errno_location (void)
{
return &h_errno;
}
-
+libc_hidden_weak(__h_errno_location)