]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <string.h> unconditionally.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:28:38 +0000 (08:28 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:28:38 +0000 (08:28 +0000)
lib/basename.c
lib/dirname.c
lib/stripslash.c

index 54f037ed5fcede67602e893380aa742022041bbf..5ff29893305b01f8d59ab2a63c14440c6309a3cc 100644 (file)
@@ -1,5 +1,7 @@
 /* basename.c -- return the last element in a path
-   Copyright (C) 1990, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+   Copyright (C) 1990, 1998, 1999, 2000, 2001, 2003 Free Software
+   Foundation, Inc.
 
    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
 # include <config.h>
 #endif
 
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#endif
 #include "dirname.h"
+#include <string.h>
 
 /* In general, we can't use the builtin `basename' function if available,
    since it has different meanings in different environments.
index 131af8bbdb0e9987b98070f0d6dee6ef26648623..815192a66f43c7d67b2ffeae93f910141cdd4438 100644 (file)
@@ -1,5 +1,5 @@
 /* dirname.c -- return all but the last element in a path
-   Copyright 1990, 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
 
    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
 # include <config.h>
 #endif
 
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#endif
-
 #include "dirname.h"
+
+#include <string.h>
 #include "xalloc.h"
 
 /* Return the length of `dirname (PATH)', or zero if PATH is
index 73be737321fc326242a7730b928dd987612c8305..c6b319e69f867d2ebe7363c21177dd759abccc56 100644 (file)
@@ -1,5 +1,5 @@
 /* stripslash.c -- remove redundant trailing slashes from a file name
-   Copyright (C) 1990, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1990, 2001, 2003 Free Software Foundation, Inc.
 
    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
 # include <config.h>
 #endif
 
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-
 #include "dirname.h"
 
 /* Remove trailing slashes from PATH.