44 lines
1003 B
Diff
44 lines
1003 B
Diff
From e450c37f0420a7ee92c3d03b4b4a9b54069f39f4 Mon Sep 17 00:00:00 2001
|
|
From: "Tom G. Christensen" <tgc@jupiterrise.com>
|
|
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 <stdint.h>
|
|
+#else
|
|
+#include <inttypes.h>
|
|
+#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 <stdarg.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
+#ifdef HAVE_STDINT_H
|
|
#include <stdint.h>
|
|
+#endif
|
|
|
|
#ifdef _WIN32
|
|
# define WIN32_LEAN_AND_MEAN
|
|
--
|
|
2.16.5
|
|
|