mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-08 07:02:21 +03:00
(environ): Define as weak alias for __environ.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
|
||||||
Contributed by Brendan Kehoe (brendan@zen.org).
|
Contributed by Brendan Kehoe (brendan@zen.org).
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -18,8 +18,10 @@ Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
|
||||||
#ifndef HAVE_GNU_LD
|
#ifndef HAVE_WEAK_SYMBOLS
|
||||||
#define __environ environ
|
#define __environ environ
|
||||||
|
#else
|
||||||
|
weak_alias (__environ, environ)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.comm __environ, 8
|
.comm __environ, 8
|
||||||
|
|||||||
@@ -18,8 +18,10 @@ Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
|
||||||
#ifndef HAVE_GNU_LD
|
#ifndef HAVE_WEAK_SYMBOLS
|
||||||
#define __environ environ
|
#define __environ environ
|
||||||
|
#else
|
||||||
|
weak_alias (__environ, environ)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.comm __environ, 4
|
.comm __environ, 4
|
||||||
|
|||||||
Reference in New Issue
Block a user