X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fuserspec.c;h=fc93267f839ee543a9281b6b74291010534ddd02;hb=95ed01883016323b7476f3ee580149ea4b810e0f;hp=60c6ecc1aa1a775ea43a2109c467d8635dfd94b2;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/userspec.c b/lib/userspec.c index 60c6ecc1a..fc93267f8 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -17,14 +17,27 @@ /* Written by David MacKenzie . */ +#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 + #include #include #include #include -#if defined(USG) || defined(STDC_HEADERS) +#if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include +#ifndef index #define index strchr +#endif #else #include #endif