X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Funlink-if-ordinary.c;h=b4d6f0a84183920cddbda1aae54a24763ec8c646;hb=f717994fe84df26ec4e4fe4104e018ece8b5b9cf;hp=297b14bbc7d9e0324a0ab6632290dbf02df66abc;hpb=190eb1370b7b7e8f608294d3b03d315a70761601;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/unlink-if-ordinary.c b/libiberty/unlink-if-ordinary.c index 297b14bbc7..b4d6f0a841 100644 --- a/libiberty/unlink-if-ordinary.c +++ b/libiberty/unlink-if-ordinary.c @@ -1,5 +1,5 @@ /* unlink-if-ordinary.c - remove link to a file unless it is special - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the @@ -14,7 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, if you link this library with files compiled with a GNU compiler to produce an executable, this does not cause @@ -39,6 +39,8 @@ was made to unlink the file because it is special. #include "config.h" #endif +#include + #ifdef HAVE_UNISTD_H #include #endif @@ -58,8 +60,7 @@ was made to unlink the file because it is special. #endif int -unlink_if_ordinary (name) - const char *name; +unlink_if_ordinary (const char *name) { struct stat st;