conditionalise stdint.h inclusion on HAVE_STDINT_H

fixes build on AIX5 at least
This commit is contained in:
Damien Miller 2023-07-18 15:41:12 +10:00
parent ff047504fa
commit 750911fd31
No known key found for this signature in database
5 changed files with 15 additions and 5 deletions

View File

@ -24,7 +24,9 @@
#include <pwd.h> #include <pwd.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif
#include <stdarg.h> #include <stdarg.h>
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>

2
misc.c
View File

@ -38,7 +38,9 @@
#include <signal.h> #include <signal.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>

View File

@ -1,7 +1,9 @@
// cc_fuzz_target test for ssh-agent. // cc_fuzz_target test for ssh-agent.
extern "C" { extern "C" {
#ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif
#include <sys/types.h> #include <sys/types.h>
extern void test_one(const uint8_t* s, size_t slen); extern void test_one(const uint8_t* s, size_t slen);

View File

@ -20,7 +20,9 @@
#ifdef ENABLE_SK_INTERNAL #ifdef ENABLE_SK_INTERNAL
#ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -25,7 +25,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif
#include <unistd.h> #include <unistd.h>
#include "log.h" #include "log.h"