summaryrefslogtreecommitdiff
path: root/xwininfo.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-07-10 10:19:14 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-07-10 10:19:14 -0700
commit8263f19cf9002c7b5f2967a2bde7af4ed117c1e5 (patch)
treebc51ad1db093e0ba37d26bd25f25186e5f75215a /xwininfo.c
parent3fa31068bcae6a5bee7fbd41788e13d6d56da8c0 (diff)
strnlen: Fix building on systems without strnlen(3)
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'xwininfo.c')
-rw-r--r--xwininfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xwininfo.c b/xwininfo.c
index cd81834..265f6c6 100644
--- a/xwininfo.c
+++ b/xwininfo.c
@@ -83,6 +83,10 @@ of the copyright holder.
#include <ctype.h>
#include <errno.h>
+#ifndef HAVE_STRNLEN
+#include "strnlen.h"
+#endif
+
/* Include routines to handle parsing defaults */
#include "dsimple.h"