python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / iperf / 0001-util.h-add-missing-stdbool-header.patch
blob6eeed72a6cd12279e4bf8172ab6caafa9a3eb2b7
1 From babf9a5c2bbce4725963b21e47f413962e33ea88 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Sat, 30 Jul 2016 14:24:33 +0200
4 Subject: [PATCH] util.h: add missing stdbool header
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 C requires the stdbool.h header for the 'bool' type.
11 Fixes the following build failure under uClibc-ng C library:
13 .../arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c delay.c
14 In file included from delay.c:55:0:
15 ../include/util.h:73:1: error: unknown type name ‘bool’
16 bool setsock_blocking(int fd, bool blocking);
19 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
20 [Thomas: add AC_PROG_CC_C99, since C99 is needed for the bool type.]
21 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
22 ---
23 configure.ac | 1 +
24 include/util.h | 2 ++
25 2 files changed, 3 insertions(+)
27 diff --git a/configure.ac b/configure.ac
28 index d59107a..ba30cb7 100644
29 --- a/configure.ac
30 +++ b/configure.ac
31 @@ -46,6 +46,7 @@ dnl ===================================================================
32 AC_PROG_CXX
33 CXXFLAGS=`echo " $CXXFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
34 AC_PROG_CC
35 +AC_PROG_CC_C99
36 CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly
37 AC_ISC_POSIX
38 AC_PROG_INSTALL
39 diff --git a/include/util.h b/include/util.h
40 index f4ae3d8..91540a9 100644
41 --- a/include/util.h
42 +++ b/include/util.h
43 @@ -57,6 +57,8 @@
44 #include "config.h"
45 #endif
47 +#include <stdbool.h>
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 --
53 2.7.4