X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fsetenv.c;h=82bf1b83600fae86c7f9eee99fffaf7bfc157ef3;hb=5f8989944880cad1bfffab3801214a0a9b67b72e;hp=355af5a9dd673831c4feb0f45630feeb252294a9;hpb=01f0fe5e0450edf168c1f612feb93cf588e4e7ea;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/setenv.c b/libiberty/setenv.c index 355af5a9dd..82bf1b8360 100644 --- a/libiberty/setenv.c +++ b/libiberty/setenv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1992-2020 Free Software Foundation, Inc. This file based on setenv.c in the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,7 +19,8 @@ /* -@deftypefn Supplemental int setenv (const char *@var{name}, const char *@var{value}, int @var{overwrite}) +@deftypefn Supplemental int setenv (const char *@var{name}, @ + const char *@var{value}, int @var{overwrite}) @deftypefnx Supplemental void unsetenv (const char *@var{name}) @code{setenv} adds @var{name} to the environment with value @@ -60,9 +61,7 @@ extern int errno; #endif #define __environ environ -#ifndef HAVE_ENVIRON_DECL -extern char **environ; -#endif +#include "environ.h" #undef setenv #undef unsetenv