From 7a3bfc4ef45ec886010b63ba6ba4a7029b1cd526 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 Sep 1998 13:51:51 +0000 Subject: Update. 1998-09-24 Mark Kettenis * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for _sys_siglist. [!HAVE_GNU_LD]: Do not define _sys_siglist as sys_siglist. This is handled correctly by the weak_alias macro. --- ChangeLog | 6 ++++++ posix/getopt.h | 2 +- sysdeps/unix/siglist.c | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4d7651e006..7e6e390063 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-09-24 Mark Kettenis + + * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for + _sys_siglist. [!HAVE_GNU_LD]: Do not define _sys_siglist as + sys_siglist. This is handled correctly by the weak_alias macro. + 1998-09-24 Ulrich Drepper * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition diff --git a/posix/getopt.h b/posix/getopt.h index 47a601ec3d..ffb550b449 100644 --- a/posix/getopt.h +++ b/posix/getopt.h @@ -163,7 +163,7 @@ extern int _getopt_internal (); } #endif -/* Make sure we later can get all the definitions and declarations. */ +/* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ diff --git a/sysdeps/unix/siglist.c b/sysdeps/unix/siglist.c index 4e69530715..53776b5a42 100644 --- a/sysdeps/unix/siglist.c +++ b/sysdeps/unix/siglist.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,10 +18,6 @@ #include -#ifndef HAVE_GNU_LD -#define _sys_siglist sys_siglist -#endif - /* This is a list of all known signal numbers. */ const char *const _sys_siglist[] = @@ -60,3 +56,5 @@ const char *const _sys_siglist[] = N_("User defined signal 2"), NULL }; + +weak_alias (_sys_siglist, sys_siglist) -- cgit v1.2.3