X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdirname.c;h=cb53eb406d1effe71dde7df55a18077d9b3f4a3a;hb=a89ae060ff117b21f797a78ac9e4004164266694;hp=82deea7b4ac90929658990923da15b7df686dc55;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/dirname.c b/lib/dirname.c index 82deea7b4..cb53eb406 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -15,14 +15,27 @@ 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 +#endif #else #include #endif