From 190da1cd0c221438c563b5b605ff811e9075e210 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Aug 2006 23:20:30 +0000 Subject: sync with psm: update errno handling to be the same on all arches --- libc/misc/internals/__errno_location.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/misc/internals/__errno_location.c') diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c index cd2a9c0eb..5a2af36fd 100644 --- a/libc/misc/internals/__errno_location.c +++ b/libc/misc/internals/__errno_location.c @@ -1,8 +1,16 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + #include #undef errno +extern int errno; libc_hidden_proto(errno) /* psm: moved to bits/errno.h: libc_hidden_proto(__errno_location) */ +libc_hidden_proto(__errno_location) int * weak_const_function __errno_location (void) { return &errno; -- cgit v1.2.3