X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffopen-safer.c;h=4f2ffa1b850c41058ee9d0f03ebaa9bf5da7d6fc;hb=b3dc221cce17693e95ef37bae7f4e212326b824b;hp=1eb594b32f248e12e2cab8083b029aa8be5e0036;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/fopen-safer.c b/lib/fopen-safer.c index 1eb594b32..4f2ffa1b8 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 @@ -17,23 +17,20 @@ /* Written by Paul Eggert. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # 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 *