From: Jim Meyering Date: Sat, 27 Aug 2005 20:49:12 +0000 (+0000) Subject: Merge minor changes from coreutils. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=794b55ff3dcebba4518b555161f97ef6524a7270;p=pspp Merge minor changes from coreutils. --- diff --git a/lib/dup-safer.c b/lib/dup-safer.c index 034297aa1e..1c46b6e722 100644 --- a/lib/dup-safer.c +++ b/lib/dup-safer.c @@ -25,9 +25,7 @@ #include -#if HAVE_UNISTD_H -# include -#endif +#include #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif diff --git a/lib/fd-safer.c b/lib/fd-safer.c index 93768600f7..6b50451338 100644 --- a/lib/fd-safer.c +++ b/lib/fd-safer.c @@ -26,9 +26,7 @@ #include -#if HAVE_UNISTD_H -# include -#endif +#include #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/fopen-safer.c b/lib/fopen-safer.c index 1eb594b32f..ccaf1219f0 100644 --- a/lib/fopen-safer.c +++ b/lib/fopen-safer.c @@ -1,5 +1,5 @@ /* Invoke fopen, but avoid some glitches. - Copyright (C) 2001, 2004 Free Software Foundation, Inc. + Copyright (C) 2001, 2004, 2005 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,19 +21,16 @@ # include #endif -#if HAVE_UNISTD_H -# include -#endif -#include +#include "stdio-safer.h" + +#include +#include +#include "unistd-safer.h" #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif -#include -#include -#include - /* Like fopen, but do not return stdin, stdout, or stderr. */ FILE *