diff options
author | Tim Rice <tim@multitalents.net> | 2010-11-08 14:26:23 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2010-11-08 14:26:23 -0800 |
commit | c7a8af03a022e8ab52422b6ce26fdbcb729031fd (patch) | |
tree | fa4a41a93bb6293c740d52a9a1c9aa2ace0046db /openbsd-compat/bsd-misc.c | |
parent | e426f5e932cedeb6938469ded340f272390f6a07 (diff) |
- (tim) [configure.ac openbsd-compat/bsd-misc.h openbsd-compat/bsd-misc.c] Add
support for platforms missing isblank(). ok djm@
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 55f100ac..3ef373f5 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c @@ -240,3 +240,10 @@ strdup(const char *str) return NULL; } #endif + +#ifndef HAVE_ISBLANK +int isblank(int c) +{ + return (c == ' ' || c == '\t'); +} +#endif |