X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdirname.c;h=cb53eb406d1effe71dde7df55a18077d9b3f4a3a;hb=c70c08f944b5339f99720b830bbd98d0817265dc;hp=7467d29e853d51df40056adc48ce5124223166fb;hpb=642b12f91f83d4b8a06bfe3ba734e8a2afca0309;p=gnulib.git diff --git a/lib/dirname.c b/lib/dirname.c index 7467d29e8..cb53eb406 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -15,12 +15,23 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include +#else +#include "config.h" +#endif +#endif + #ifdef STDC_HEADERS #include #else char *malloc (); #endif -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include #ifndef rindex #define rindex strrchr