Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | From 1bfde222926be624a30a6e4b2cdc2c5064a36298 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> |
| 3 | Date: Fri, 29 Jul 2016 01:19:37 +0300 |
| 4 | Subject: [PATCH] configure.ac: explicitely check stdint.h |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Otherwise HAVE_STDINT_H will not be defined or the var will not be |
| 10 | picked up from cache so builds could fail with errors like: |
| 11 | | ../../dbus-1.10.8/dbus/dbus-internals.h:239:8: error: ‘uintptr_t’ undeclared (first use in this function) |
| 12 | |
| 13 | Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> |
| 14 | [smcv: fix Autoconf underquoting] |
| 15 | Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> |
| 16 | |
| 17 | Upstream-Status: Backport [from dbus-1.10] |
| 18 | |
| 19 | --- |
| 20 | configure.ac | 2 ++ |
| 21 | 1 file changed, 2 insertions(+) |
| 22 | |
| 23 | diff --git a/configure.ac b/configure.ac |
| 24 | index cf5c5b9..a228d63 100644 |
| 25 | --- a/configure.ac |
| 26 | +++ b/configure.ac |
| 27 | @@ -699,6 +699,8 @@ AC_CHECK_HEADERS(byteswap.h) |
| 28 | |
| 29 | AC_CHECK_HEADERS(unistd.h) |
| 30 | |
| 31 | +AC_CHECK_HEADERS([stdint.h]) |
| 32 | + |
| 33 | AC_CHECK_HEADERS(ws2tcpip.h) |
| 34 | |
| 35 | AC_CHECK_HEADERS(alloca.h) |
| 36 | -- |
| 37 | 2.9.2 |
| 38 | |