[openssh-commits] [openssh] 01/01: Wrap stdint.h includes in ifdefs.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Feb 23 03:10:49 AEDT 2015


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f
Author: Darren Tucker <dtucker at zip.com.au>
Date:   Mon Feb 23 03:07:24 2015 +1100

    Wrap stdint.h includes in ifdefs.
---
 channels.c                    | 2 ++
 openbsd-compat/reallocarray.c | 2 ++
 sshbuf-misc.c                 | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/channels.c b/channels.c
index 86c454a..9486c1c 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 cffe9b5..1a52acc 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 e07e34a..f1c2d03 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>

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list