summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-02-24 09:04:32 +1100
committerDamien Miller <djm@mindrot.org>2015-02-24 09:04:32 +1100
commit9af21979c00652029e160295e988dea40758ece2 (patch)
tree7f869b75a0d9c60c8b6ba0804e378ced4ddaa11f
parent62f678dd51660d6f8aee1da33d3222c5de10a89e (diff)
downloadopenssh-git-9af21979c00652029e160295e988dea40758ece2.tar.gz
don't include stdint.h unless HAVE_STDINT_H set
-rw-r--r--monitor.c2
-rw-r--r--monitor_mm.c2
-rw-r--r--xmalloc.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 4f9c9fed..bab6ce87 100644
--- a/monitor.c
+++ b/monitor.c
@@ -39,7 +39,9 @@
#endif
#include <pwd.h>
#include <signal.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
diff --git a/monitor_mm.c b/monitor_mm.c
index 50731527..aa47b2ed 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -35,7 +35,9 @@
#include <errno.h>
#include <stdarg.h>
#include <stddef.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdlib.h>
#include <string.h>
diff --git a/xmalloc.c b/xmalloc.c
index fe266cc4..cd59dc2e 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -16,7 +16,9 @@
#include "includes.h"
#include <stdarg.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>