summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2010-11-08 14:26:23 -0800
committerTim Rice <tim@multitalents.net>2010-11-08 14:26:23 -0800
commitc7a8af03a022e8ab52422b6ce26fdbcb729031fd (patch)
treefa4a41a93bb6293c740d52a9a1c9aa2ace0046db /openbsd-compat/bsd-misc.c
parente426f5e932cedeb6938469ded340f272390f6a07 (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.c7
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