diff options
Diffstat (limited to 'tests/modetest')
-rw-r--r-- | tests/modetest/modetest.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index c111c791..a8ba076c 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -843,6 +843,15 @@ static char optstr[] = "ecpmfs:P:v"; #define min(a, b) ((a) < (b) ? (a) : (b)) +#ifndef HAVE_STRCHRNUL +static char *strchrnul(const char *s, int c) +{ + while (*s && *s != c) + s++; + return (char *)s; +} +#endif + static int parse_connector(struct connector *c, const char *arg) { unsigned int len; |