From 6d8337bfc808cddc275899c03482eceb6aff8547 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 Jul 1996 03:36:16 +0000 Subject: [PATCH] update FSF address in copyright --- lib/argmatch.c | 4 ++-- lib/backupfile.c | 4 ++-- lib/backupfile.h | 4 ++-- lib/basename.c | 4 ++-- lib/dirname.c | 4 ++-- lib/euidaccess.c | 4 ++-- lib/fileblocks.c | 4 ++-- lib/filemode.c | 4 ++-- lib/fnmatch.c | 4 ++-- lib/fnmatch.h | 66 ++++++++++++++++++++++++++++++------------------------ lib/fsusage.c | 4 ++-- lib/fsusage.h | 4 ++-- lib/getversion.c | 8 +++++-- lib/group-member.c | 4 ++-- lib/idcache.c | 12 ++++++---- lib/isdir.c | 4 ++-- lib/makepath.c | 4 ++-- lib/memcmp.c | 4 ++-- lib/mkdir.c | 4 ++-- lib/mktime.c | 4 ++-- lib/modechange.c | 4 ++-- lib/modechange.h | 4 ++-- lib/mountlist.c | 4 ++-- lib/mountlist.h | 4 ++-- lib/obstack.c | 10 ++++----- lib/obstack.h | 4 ++-- lib/rename.c | 4 ++-- lib/rmdir.c | 4 ++-- lib/safe-read.c | 4 ++-- lib/save-cwd.c | 4 ++-- lib/savedir.c | 4 ++-- lib/stpcpy.c | 4 ++-- lib/strndup.c | 4 ++-- lib/userspec.c | 4 ++-- lib/xgetcwd.c | 15 ++++--------- lib/yesno.c | 8 +++++-- 36 files changed, 126 insertions(+), 113 deletions(-) diff --git a/lib/argmatch.c b/lib/argmatch.c index 5777b27ac..5f47711c6 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ diff --git a/lib/backupfile.c b/lib/backupfile.c index fcaee9f44..1698c3474 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* David MacKenzie . Some algorithms adapted from GNU Emacs. */ diff --git a/lib/backupfile.h b/lib/backupfile.h index 94d625466..5d09d3626 100644 --- a/lib/backupfile.h +++ b/lib/backupfile.h @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* When to make backup files. */ enum backup_type diff --git a/lib/basename.c b/lib/basename.c index 7e0c1f611..5c619c96f 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/dirname.c b/lib/dirname.c index 15d25967a..3481131b0 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/euidaccess.c b/lib/euidaccess.c index e2b19c4c9..4e032a911 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -15,8 +15,8 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ +not, write to the Free Software Foundation, Inc., 59 Temple Place - +Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie and Torbjorn Granlund. Adapted for GNU C library by Roland McGrath. */ diff --git a/lib/fileblocks.c b/lib/fileblocks.c index fc9a8eb00..0cfebb541 100644 --- a/lib/fileblocks.c +++ b/lib/fileblocks.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ diff --git a/lib/filemode.c b/lib/filemode.c index 20c65c4b0..8ed730c6f 100644 --- a/lib/filemode.c +++ b/lib/filemode.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/fnmatch.c b/lib/fnmatch.c index aec3d1aba..594633141 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -14,8 +14,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/fnmatch.h b/lib/fnmatch.h index 0b3588a6e..af1dcf523 100644 --- a/lib/fnmatch.h +++ b/lib/fnmatch.h @@ -1,48 +1,57 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. +NOTE: The canonical source of this file is maintained with the GNU C Library. +Bugs can be reported to bug-glibc@prep.ai.mit.edu. -This library is distributed in the hope that it will be useful, +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with this library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FNMATCH_H #define _FNMATCH_H 1 #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) #undef __P -#define __P(args) args +#define __P(protos) protos #else /* Not C++ or ANSI C. */ #undef __P -#define __P(args) () -#undef const -#define const +#define __P(protos) () +/* We can get away without defining `const' here only because in this file + it is used only inside the prototype for `fnmatch', which is elided in + non-ANSI C where `const' is problematical. */ #endif /* C++ or ANSI C. */ + +/* We #undef these before defining them because some losing systems + (HP-UX A.08.07 for example) define these in . */ +#undef FNM_PATHNAME +#undef FNM_NOESCAPE +#undef FNM_PERIOD + /* Bits set in the FLAGS argument to `fnmatch'. */ -#define FNM_PATHNAME (1 << 0)/* No wildcard can ever match `/'. */ -#define FNM_NOESCAPE (1 << 1)/* Backslashes don't quote special chars. */ -#define FNM_PERIOD (1 << 2)/* Leading `.' is matched only explicitly. */ -#define FNM_TARPATH (1 << 4)/* Ignore `/...' after a match. */ -#define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD|FNM_TARPATH) - -#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_BSD_SOURCE) -#define FNM_FILE_NAME FNM_PATHNAME +#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ +#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ +#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ + +#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE) +#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ +#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ +#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ #endif /* Value returned by `fnmatch' if STRING does not match PATTERN. */ @@ -50,12 +59,11 @@ extern "C" /* Match STRING against the filename pattern PATTERN, returning zero if it matches, FNM_NOMATCH if not. */ - extern int fnmatch __P ((const char *__pattern, const char *__string, - int __flags)); +extern int fnmatch __P ((const char *__pattern, const char *__string, + int __flags)); #ifdef __cplusplus } - #endif #endif /* fnmatch.h */ diff --git a/lib/fsusage.c b/lib/fsusage.c index 5260b9f80..34093a3a1 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/fsusage.h b/lib/fsusage.h index a4bcdbf59..227c5b455 100644 --- a/lib/fsusage.h +++ b/lib/fsusage.h @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Space usage statistics for a filesystem. Blocks are 512-byte. */ struct fs_usage diff --git a/lib/getversion.c b/lib/getversion.c index eca294599..4ae705a55 100644 --- a/lib/getversion.c +++ b/lib/getversion.c @@ -12,11 +12,15 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "backupfile.h" #ifdef STDC_HEADERS diff --git a/lib/group-member.c b/lib/group-member.c index 05b1bc0d7..eda707321 100644 --- a/lib/group-member.c +++ b/lib/group-member.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/idcache.c b/lib/idcache.c index 3e5f134ae..84e82fabd 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -12,15 +12,19 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifdef HAVE_CONFIG_H +#include +#endif #include #include #include #include -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include #else #include @@ -199,7 +203,7 @@ getgidbyname (group) group_alist = tail; return &tail->id.g; } - + tail->next = nogroup_alist; nogroup_alist = tail; return 0; diff --git a/lib/isdir.c b/lib/isdir.c index dfd52a4a9..428334633 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/makepath.c b/lib/makepath.c index 42316d285..d2b2c43c5 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie and Jim Meyering. */ diff --git a/lib/memcmp.c b/lib/memcmp.c index dce6d3a8c..98f7ed791 100644 --- a/lib/memcmp.c +++ b/lib/memcmp.c @@ -15,8 +15,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/lib/mkdir.c b/lib/mkdir.c index efde52e05..8495ad94b 100644 --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/mktime.c b/lib/mktime.c index 852d4058b..bff026f3e 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -15,8 +15,8 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ +not, write to the Free Software Foundation, Inc., 59 Temple Place - +Suite 330, Boston, MA 02111-1307, USA. */ /* Define this to have a standalone program to test this implementation of mktime. */ diff --git a/lib/modechange.c b/lib/modechange.c index 5a009271e..f8705778e 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie */ diff --git a/lib/modechange.h b/lib/modechange.h index 0257ef00c..eaf854e15 100644 --- a/lib/modechange.h +++ b/lib/modechange.h @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Masks for the `flags' field in a `struct mode_change'. */ diff --git a/lib/mountlist.c b/lib/mountlist.c index 86f1e7687..5a6d664c5 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/mountlist.h b/lib/mountlist.h index 78fb1b333..0a6e6d8b2 100644 --- a/lib/mountlist.h +++ b/lib/mountlist.h @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* A mount table entry. */ struct mount_entry diff --git a/lib/obstack.c b/lib/obstack.c index a8a450070..955148842 100644 --- a/lib/obstack.c +++ b/lib/obstack.c @@ -12,8 +12,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "obstack.h" @@ -31,7 +31,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #if defined (_LIBC) || !defined (__GNU_LIBRARY__) -#ifdef __STDC__ +#if defined (__STDC__) && __STDC__ #define POINTER void * #else #define POINTER char * @@ -267,7 +267,7 @@ _obstack_newchunk (h, length) This is here for debugging. If you use it in a program, you are probably losing. */ -#ifdef __STDC__ +#if defined (__STDC__) && __STDC__ /* Suppress -Wmissing-prototypes warning. We don't want to declare this in obstack.h because it is just for debugging. */ int _obstack_allocated_p (struct obstack *h, POINTER obj); @@ -374,7 +374,7 @@ obstack_free (h, obj) /* Now define the functional versions of the obstack macros. Define them to simply use the corresponding macros to do the job. */ -#ifdef __STDC__ +#if defined (__STDC__) && __STDC__ /* These function definitions do not work with non-ANSI preprocessors; they won't pass through the macro names in parentheses. */ diff --git a/lib/obstack.h b/lib/obstack.h index 137e3ff70..790290c0b 100644 --- a/lib/obstack.h +++ b/lib/obstack.h @@ -12,8 +12,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Summary: diff --git a/lib/rename.c b/lib/rename.c index 44821c94f..5a158e4cf 100644 --- a/lib/rename.c +++ b/lib/rename.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/rmdir.c b/lib/rmdir.c index de898ec54..fac5d44b5 100644 --- a/lib/rmdir.c +++ b/lib/rmdir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/safe-read.c b/lib/safe-read.c index aea32bed5..4375bf274 100644 --- a/lib/safe-read.c +++ b/lib/safe-read.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H diff --git a/lib/save-cwd.c b/lib/save-cwd.c index 6cb3f9b68..87a34e3c1 100644 --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Jim Meyering . */ diff --git a/lib/savedir.c b/lib/savedir.c index 1992cf55b..e6becc667 100644 --- a/lib/savedir.c +++ b/lib/savedir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie . */ diff --git a/lib/stpcpy.c b/lib/stpcpy.c index 5ca0a2e30..e7a95a465 100644 --- a/lib/stpcpy.c +++ b/lib/stpcpy.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include diff --git a/lib/strndup.c b/lib/strndup.c index 6bceed081..a23060e38 100644 --- a/lib/strndup.c +++ b/lib/strndup.c @@ -14,8 +14,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +along with this program; if not, write to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include "config.h" diff --git a/lib/userspec.c b/lib/userspec.c index c6a49fae2..d08ed0716 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie . */ diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index 6e775e74b..7aa04efa4 100644 --- a/lib/xgetcwd.c +++ b/lib/xgetcwd.c @@ -12,20 +12,13 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Written by David MacKenzie, djm@gnu.ai.mit.edu. */ +/* Written by David MacKenzie . */ #ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ #include -#else -#include "config.h" -#endif #endif #include @@ -36,7 +29,7 @@ extern int errno; #include #include "pathmax.h" -#if !defined(_POSIX_VERSION) && !defined(HAVE_GETCWD) +#ifndef HAVE_GETCWD char *getwd (); #define getcwd(buf, max) getwd (buf) #else diff --git a/lib/yesno.c b/lib/yesno.c index a705da732..74cbcb742 100644 --- a/lib/yesno.c +++ b/lib/yesno.c @@ -12,8 +12,12 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifdef HAVE_CONFIG_H +#include +#endif #include -- 2.11.0