summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-08-17 21:34:32 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-08-17 21:34:32 +1000
commit05c215de8d224e094a872d97d45f37f60c06206b (patch)
tree106663c19f7303ee3f303dbc8f8631d7780af865
parenteaf2765efe8bc74feba85c34295d067637fc6635 (diff)
Wrap stdint.h include in ifdef HAVE_STDINT_H.
-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 eb64eaab..ac1243eb 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)