X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffopen.c;h=c17c73f2f3926d00d90cfecb9840ca0368e4958a;hb=47834c92f8122f4ba5e6fca5199a4611425bfe69;hp=81c861724ec751a5b51ada8a7b6834c474ecd050;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/fopen.c b/lib/fopen.c index 81c861724..c17c73f2f 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -1,5 +1,5 @@ /* Open a stream to a file. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 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 @@ -16,10 +16,13 @@ /* Written by Bruno Haible , 2007. */ +/* If the user's config.h happens to include , let it include only + the system's here, so that orig_fopen doesn't recurse to + rpl_fopen. */ +#define __need_FILE #include /* Get the original definition of fopen. It might be defined as a macro. */ -#define __need_FILE #include #undef __need_FILE @@ -30,7 +33,9 @@ orig_fopen (const char *filename, const char *mode) } /* Specification. */ -#include +/* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "stdio.h" #include #include