X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fbasename.c;h=0f2c069f0ccf5a7d91e4913548e068c247e12efb;hb=44a8b4df1d6f5b8096f01787751fd51c42e78fc6;hp=69a982d7dca8f5795b69e361347bf84ec0ef0314;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/basename.c b/libiberty/basename.c index 69a982d7dc..0f2c069f0c 100644 --- a/libiberty/basename.c +++ b/libiberty/basename.c @@ -12,6 +12,9 @@ Behavior is undefined if the pathname ends in a directory separator. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "ansidecl.h" #include "libiberty.h" #include "safe-ctype.h" @@ -37,8 +40,7 @@ Behavior is undefined if the pathname ends in a directory separator. #endif /* DIR_SEPARATOR_2 */ char * -basename (name) - const char *name; +basename (const char *name) { const char *base;