]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
accommodate gnulib header removals
authorJim Meyering <meyering@redhat.com>
Sun, 19 Oct 2008 11:35:16 +0000 (13:35 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 19 Oct 2008 12:15:31 +0000 (14:15 +0200)
* src/copy.c: Don't include "euidaccess.h" or "lchmod.h".
* src/cp.c: Don't include "lchmod.h".
* src/ls.c: Don't include "dirfd.h".
* src/mkdir.c: Don't include "lchmod.h".
* src/pwd.c: Don't include "dirfd.h".
* src/remove.c: Don't include "dirfd.h" or "euidaccess.h".
* src/test.c: Don't include "euidaccess.h".
* gl/modules/getloadavg.diff: Adjust diff for changed context.
* src/uptime.c (uptime): Remove declaration.

gl/modules/getloadavg.diff
src/copy.c
src/cp.c
src/ls.c
src/mkdir.c
src/pwd.c
src/remove.c
src/test.c
src/uptime.c

index 99d904376299eba992438a3a805a4de1f8fca392..cd03f62cfa3184b63c5bdadf98f470747da358a8 100644 (file)
@@ -1,16 +1,13 @@
-Index: modules/getloadavg
-===================================================================
-RCS file: /sources/gnulib/gnulib/modules/getloadavg,v
-retrieving revision 1.13
-diff -u -p -r1.13 getloadavg
---- modules/getloadavg 22 Sep 2006 12:47:55 -0000      1.13
-+++ modules/getloadavg 23 Sep 2006 16:41:36 -0000
-@@ -14,7 +14,7 @@ stdbool
+diff --git a/modules/getloadavg b/modules/getloadavg
+index 2fbeb40..b79aaca 100644
+--- a/modules/getloadavg
++++ b/modules/getloadavg
+@@ -16,7 +16,7 @@ stdbool
  fcntl-safer
 
  configure.ac:
 -gl_GETLOADAVG([$gl_source_base])
 +gl_GETLOADAVG([lib])
+ gl_STDLIB_MODULE_INDICATOR([getloadavg])
 
  Makefile.am:
-
index 5a584752d41ed2b2e742b935d2a72dd6ff6ace61..bc1b20ee2b61b62243ba871949f79f63977a9ea9 100644 (file)
@@ -35,7 +35,6 @@
 #include "buffer-lcm.h"
 #include "copy.h"
 #include "cp-hash.h"
-#include "euidaccess.h"
 #include "error.h"
 #include "fcntl--.h"
 #include "file-set.h"
@@ -45,7 +44,6 @@
 #include "hash.h"
 #include "hash-triple.h"
 #include "ignore-value.h"
-#include "lchmod.h"
 #include "quote.h"
 #include "same.h"
 #include "savedir.h"
index 58c9c0953be9e113b050a268edb0aa2498e56bbe..95eba0cf1c5a46aba7d5d154df2009eafb37a42b 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -30,7 +30,6 @@
 #include "error.h"
 #include "filenamecat.h"
 #include "ignore-value.h"
-#include "lchmod.h"
 #include "quote.h"
 #include "stat-time.h"
 #include "utimens.h"
index efe42e3ecebc1990682fa2dbd78eb49b57454955..f454d0e29122ced2f9f41f54426056281c866195 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -87,7 +87,6 @@
 #include "acl.h"
 #include "argmatch.h"
 #include "dev-ino.h"
-#include "dirfd.h"
 #include "error.h"
 #include "filenamecat.h"
 #include "hard-locale.h"
index e408f2975250724fdef1d30407720591626bcd8b..ca543aa6fc9c6a6cebd8fc12173f3ba59f871388 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "system.h"
 #include "error.h"
-#include "lchmod.h"
 #include "mkdir-p.h"
 #include "modechange.h"
 #include "prog-fprintf.h"
index 3c7b4fcc4481046cee912a9b7be84b590eb8072f..ac59155de29576f82caca47d0a26671df9abca70 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -20,7 +20,6 @@
 #include <sys/types.h>
 
 #include "system.h"
-#include "dirfd.h"
 #include "error.h"
 #include "long-options.h"
 #include "quote.h"
index e92f78caf3ec99bd97eee94cdba6f01c7d66d099..28684b29c900c5223d80919c3e4a8e7652054bed 100644 (file)
@@ -24,9 +24,7 @@
 
 #include "system.h"
 #include "cycle-check.h"
-#include "dirfd.h"
 #include "error.h"
-#include "euidaccess.h"
 #include "euidaccess-stat.h"
 #include "file-type.h"
 #include "hash.h"
index 1fe7da00cf26e6d94c46ce9b76192d34912cbbc5..14d20fd27c8e347605ebbad88d33ed9741b310eb 100644 (file)
@@ -38,7 +38,6 @@
 #endif
 
 #include "system.h"
-#include "euidaccess.h"
 #include "quote.h"
 #include "stat-time.h"
 #include "strnumcmp.h"
index 8687a575fb614e2274dcead30411389bee31e83f..95fea4b91bdcdca5b4486ef50f9ff824de284caa 100644 (file)
@@ -46,8 +46,6 @@
   proper_name ("David MacKenzie"), \
   proper_name ("Kaveh Ghazi")
 
-int getloadavg ();
-
 static void
 print_uptime (size_t n, const STRUCT_UTMP *this)
 {