From e450c37f0420a7ee92c3d03b4b4a9b54069f39f4 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 23 Mar 2019 20:48:25 +0100 Subject: [PATCH 1/4] Fix building without stdint.h --- cli/getopt_long.h | 4 ++++ libpkgconf/stdinc.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cli/getopt_long.h b/cli/getopt_long.h index b124291..2af2100 100644 --- a/cli/getopt_long.h +++ b/cli/getopt_long.h @@ -33,7 +33,11 @@ #ifndef _GETOPT_LONG_H_ #define _GETOPT_LONG_H_ +#ifdef HAVE_STDINT_H #include +#else +#include +#endif /* * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension. diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h index ca3a7dc..d071ae4 100644 --- a/libpkgconf/stdinc.h +++ b/libpkgconf/stdinc.h @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_STDINT_H #include +#endif #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN -- 2.16.5