← Commit list

db7d5fca5

Eric Andersen
Eric Andersen
2002-04-13
FAILED Duration: 3s

Subject

Stupid gcc always includes its own builtin strlen()...

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/libbb.h+4 -0
@@ -293,4 +293,8 @@ int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);
void reset_ino_dev_hashtable(void);
+/* Stupid gcc always includes its own builtin strlen()... */
+extern size_t xstrlen(const char *string);
+#define strlen(x) xstrlen(x)
+
#endif /* __LIBCONFIG_H__ */
libbb/xfuncs.c+6 -0
@@ -85,6 +85,12 @@ FILE *xfopen(const char *path, const char *mode)
return fp;
}
+/* Stupid gcc always includes its own builtin strlen()... */
+size_t xstrlen(const char *string)
+{
+ return(strlen(string));
+}
+
/* END CODE */
/*
Local Variables: