projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix build time problem with MingGW hosts, which do not have a strnlen() function.
[external/binutils.git]
/
binutils
/
sysdep.h
diff --git
a/binutils/sysdep.h
b/binutils/sysdep.h
index
3312925
..
689e8c9
100644
(file)
--- a/
binutils/sysdep.h
+++ b/
binutils/sysdep.h
@@
-112,6
+112,10
@@
extern int snprintf(char *, size_t, const char *, ...);
extern int vsnprintf(char *, size_t, const char *, va_list);
#endif
+#if !HAVE_DECL_STRNLEN
+size_t strnlen (const char *, size_t);
+#endif
+
#ifndef O_RDONLY
#define O_RDONLY 0
#endif