diff options
Diffstat (limited to 'string/basename.c')
-rw-r--r-- | string/basename.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/string/basename.c b/string/basename.c index 4f06843aeb..f24e0ac1b4 100644 --- a/string/basename.c +++ b/string/basename.c @@ -17,10 +17,15 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include <string.h> char * -basename (const char *filename) +basename (filename) + const char *filename; { char *p = strrchr (filename, '/'); return p ? p + 1 : (char *) filename; |