summaryrefslogtreecommitdiffstats
path: root/helpers.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-01-23 16:16:49 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-01-23 16:16:49 +0000
commit124b7837d9c46cbc4c7c444f5d63a96d0d3b3f86 (patch)
tree2d62c23191801afaecbf98925effb8b8c7a44ab6 /helpers.c
parent41a940c641a7ddba77d04c93e01280d20a3a354a (diff)
downloadflashrom-124b7837d9c46cbc4c7c444f5d63a96d0d3b3f86.zip
flashrom-124b7837d9c46cbc4c7c444f5d63a96d0d3b3f86.tar.gz
Add a bunch of new/tested stuff and various small changes 24
Tested mainboards: OK: - ASRock G31M-GS Binary file (standard input) matches Corresponding to flashrom svn r1917.
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.c b/helpers.c
index 7a146c3..f6eae46 100644
--- a/helpers.c
+++ b/helpers.c
@@ -92,7 +92,7 @@ char* strtok_r(char *str, const char *delim, char **nextp)
#endif
/* There is no strnlen in DJGPP */
-#if defined(__DJGPP__)
+#if defined(__DJGPP__) || !defined(HAVE_STRNLEN)
size_t strnlen(const char *str, size_t n)
{
size_t i;
OpenPOWER on IntegriCloud