summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels.c2
-rw-r--r--openbsd-compat/reallocarray.c2
-rw-r--r--sshbuf-misc.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/channels.c b/channels.c
index 86c454ab..9486c1cf 100644
--- a/channels.c
+++ b/channels.c
@@ -57,7 +57,9 @@
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/openbsd-compat/reallocarray.c b/openbsd-compat/reallocarray.c
index cffe9b5e..1a52acc6 100644
--- a/openbsd-compat/reallocarray.c
+++ b/openbsd-compat/reallocarray.c
@@ -22,7 +22,9 @@
#include <sys/types.h>
#include <errno.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdlib.h>
/*
diff --git a/sshbuf-misc.c b/sshbuf-misc.c
index e07e34a8..f1c2d03c 100644
--- a/sshbuf-misc.c
+++ b/sshbuf-misc.c
@@ -22,7 +22,9 @@
#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdio.h>
#include <limits.h>
#include <string.h>