]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Rely on gnulib-generated stdlib.h, not exit.h.
authorJim Meyering <jim@meyering.net>
Sun, 18 Feb 2007 21:34:37 +0000 (22:34 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 18 Feb 2007 21:34:37 +0000 (22:34 +0100)
* src/system.h: Don't include exit.h, now that it's subsumed
by the gnulib-generated stdlib.h.
* lib/xfts.c: Include <stdlib.h> rather than exit.h, now that stdlib.h

ChangeLog
lib/ChangeLog
lib/xfts.c
src/system.h

index a0854d789eb14a332ffc39adec804c0bc4182143..ecc50541e1ee6f869ba2c1d18b39ed1c8462b1d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-02-18  Jim Meyering  <jim@meyering.net>
 
+       * src/system.h: Don't include exit.h, now that it's subsumed
+       by the gnulib-generated stdlib.h.
+
        * tests/rm/fail-eacces: Skip this test when running as root.
        Reported by Matthew Woehlke.
 
index 793a227f983938604c1a48a74ed9b230e5cb7811..09b54b64985a24d07d78e293e6a01ea66eb15ff6 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-18  Jim Meyering  <jim@meyering.net>
+
+       * xfts.c: Include <stdlib.h> rather than exit.h, now that stdlib.h
+       is guaranteed to provide a valid definition of EXIT_FAILURE.
+
 2007-01-19  Jim Meyering  <jim@meyering.net>
 
        * .cvsignore, .gitignore: Add sys, as well as more
index f06fa7b1b814f8a3d1b48fd79b9825c53efa2cd8..1402e95e3051b44611e8c1915f39480d58b9a0e6 100644 (file)
@@ -1,6 +1,6 @@
 /* xfts.c -- a wrapper for fts_open
 
-   Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2005-2007 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
@@ -21,8 +21,8 @@
 #include <config.h>
 
 #include <stdbool.h>
+#include <stdlib.h>
 
-#include "exit.h"
 #include "error.h"
 
 #include "gettext.h"
index 383388bab4f5aa769c414c436121a3a294995fd7..763909bac09210436ca9a0e889c602559c49d8cf 100644 (file)
@@ -1,5 +1,5 @@
 /* system-dependent definitions for coreutils
-   Copyright (C) 1989, 1991-2006 Free Software Foundation, Inc.
+   Copyright (C) 1989, 1991-2007 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
@@ -113,7 +113,6 @@ you must include <sys/types.h> before including this file
 
 #include <stdbool.h>
 #include <stdlib.h>
-#include <exit.h>
 
 /* Exit statuses for programs like 'env' that exec other programs.
    EXIT_FAILURE might not be 1, so use EXIT_FAIL in such programs.  */