diff options
author | Flavio Leitner <fbl@sysclose.org> | 2018-09-25 17:46:24 -0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-09-25 14:11:13 -0700 |
commit | 4c7e176644cf03c3ea5539b359158df8de9f85d8 (patch) | |
tree | 190a9aad8d8b5efc7b960a5e9270cfe5487a50c5 /include/sparse | |
parent | 97bc5b232699e16cc3acbe10148fd60a3b029384 (diff) | |
download | openvswitch-4c7e176644cf03c3ea5539b359158df8de9f85d8.tar.gz |
sparse: check if floatn-common.h is available.
This skip including floatn-common.h if it's not available since it
was introduced in glibc 2.27 and OVS doesn't not actually require
that to work with previous glibc version.
Fixes: 07aec2ac1 sparse: Support newer GCC/glibc versions.
Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/sparse')
-rw-r--r-- | include/sparse/bits/floatn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sparse/bits/floatn.h b/include/sparse/bits/floatn.h index a247331eb..624a1660a 100644 --- a/include/sparse/bits/floatn.h +++ b/include/sparse/bits/floatn.h @@ -27,6 +27,9 @@ #define __HAVE_FLOAT128 0 #define __HAVE_FLOAT64X 0 +#ifdef HAVE_BITS_FLOATN_COMMON_H +/* Introduced in glibc 2.27 */ #include <bits/floatn-common.h> +#endif #endif /* <bits/floatn.h> for sparse */ |