From 794b55ff3dcebba4518b555161f97ef6524a7270 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Aug 2005 20:49:12 +0000 Subject: [PATCH] Merge minor changes from coreutils. --- lib/dup-safer.c | 4 +--- lib/fd-safer.c | 4 +--- lib/fopen-safer.c | 15 ++++++--------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/lib/dup-safer.c b/lib/dup-safer.c index 034297aa1..1c46b6e72 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 93768600f..6b5045133 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 1eb594b32..ccaf1219f 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 * -- 2.11.0