X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffopen-safer.c;fp=lib%2Ffopen-safer.c;h=ccaf1219f0446683eedbc2d1ccf1affc9db9c072;hb=794b55ff3dcebba4518b555161f97ef6524a7270;hp=1eb594b32f248e12e2cab8083b029aa8be5e0036;hpb=370bea79556d39ce78ebfb8146031348466e2421;p=gnulib.git 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 *