summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strstr.c
diff options
context:
space:
mode:
authordenis <denis@openbsd.org>2018-04-30 07:44:56 +0000
committerdenis <denis@openbsd.org>2018-04-30 07:44:56 +0000
commitac7de1c1df092eb963c0a7aad947e8fe2518a1fe (patch)
tree68ae23f720e931b70a5f3c995621471c0b8f5b94 /lib/libc/string/strstr.c
parentsync (diff)
downloadwireguard-openbsd-ac7de1c1df092eb963c0a7aad947e8fe2518a1fe.tar.xz
wireguard-openbsd-ac7de1c1df092eb963c0a7aad947e8fe2518a1fe.zip
Add a missing header when compiling with -DDEBUG
With advice from jca@ OK jca@ millert@
Diffstat (limited to 'lib/libc/string/strstr.c')
-rw-r--r--lib/libc/string/strstr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/string/strstr.c b/lib/libc/string/strstr.c
index 167d609c399..079d69d257f 100644
--- a/lib/libc/string/strstr.c
+++ b/lib/libc/string/strstr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strstr.c,v 1.7 2017/04/12 16:06:12 millert Exp $ */
+/* $OpenBSD: strstr.c,v 1.8 2018/04/30 07:44:56 denis Exp $ */
/*
* Copyright (c) 2005-2014 Rich Felker
@@ -27,6 +27,10 @@
#include <stdlib.h>
#include <stdint.h>
+#ifdef DEBUG
+#include <stdio.h>
+#endif
+
static char *
twobyte_strstr(const unsigned char *h, const unsigned char *n)
{