aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h4
-rw-r--r--libbb/xfuncs.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index cf593d65c..40cff8b4b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -293,4 +293,8 @@ int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
293void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); 293void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);
294void reset_ino_dev_hashtable(void); 294void reset_ino_dev_hashtable(void);
295 295
296/* Stupid gcc always includes its own builtin strlen()... */
297extern size_t xstrlen(const char *string);
298#define strlen(x) xstrlen(x)
299
296#endif /* __LIBCONFIG_H__ */ 300#endif /* __LIBCONFIG_H__ */
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 57c698079..acd4d6985 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -85,6 +85,12 @@ FILE *xfopen(const char *path, const char *mode)
85 return fp; 85 return fp;
86} 86}
87 87
88/* Stupid gcc always includes its own builtin strlen()... */
89size_t xstrlen(const char *string)
90{
91 return(strlen(string));
92}
93
88/* END CODE */ 94/* END CODE */
89/* 95/*
90Local Variables: 96Local Variables: