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 <string.h>
#include <stdio.h>
#include <stdint.h>
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#include <stdarg.h>
#include <ctype.h>
#include <limits.h>

4
misc.c
View File

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

View File

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

View File

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

View File

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