summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/memmem.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-08-17 13:34:32 +0200
committerDarren Tucker <dtucker@dtucker.net>2020-08-17 13:34:32 +0200
commit05c215de8d224e094a872d97d45f37f60c06206b (patch)
tree106663c19f7303ee3f303dbc8f8631d7780af865 /openbsd-compat/memmem.c
parentsync memmem.c with OpenBSD (diff)
downloadopenssh-05c215de8d224e094a872d97d45f37f60c06206b.tar.xz
openssh-05c215de8d224e094a872d97d45f37f60c06206b.zip
Wrap stdint.h include in ifdef HAVE_STDINT_H.
Diffstat (limited to '')
-rw-r--r--openbsd-compat/memmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/memmem.c b/openbsd-compat/memmem.c
index eb64eaab8..ac1243eb0 100644
--- a/openbsd-compat/memmem.c
+++ b/openbsd-compat/memmem.c
@@ -28,7 +28,9 @@
#ifndef HAVE_MEMMEM
#include <string.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
static char *
twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)