aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <boris@fau.re>2018-04-04 20:03:59 +0200
committerBoris Faure <boris@fau.re>2018-04-04 20:21:10 +0200
commit75689087ae680808cf006f83a2c4dfdc432602d7 (patch)
tree889544ddfbae80147c6180f5790f1f6b0c03b070
parentUpdate po and pot files (diff)
downloadterminology-75689087ae680808cf006f83a2c4dfdc432602d7.tar.gz
build: add fix for coverity
-rw-r--r--src/bin/coverity.h11
-rw-r--r--src/bin/meson.build2
-rw-r--r--src/bin/private.h2
3 files changed, 14 insertions, 1 deletions
diff --git a/src/bin/coverity.h b/src/bin/coverity.h
new file mode 100644
index 0000000..3846985
--- /dev/null
+++ b/src/bin/coverity.h
@@ -0,0 +1,11 @@
+#ifndef _COVERITY_H__
+#define _COVERITY_H__ 1
+#ifdef __COVERITY__
+
+#ifdef __x86_64__
+typedef struct { long double x; long double y; } _Float128;
+#endif
+
+#endif /* __COVERITY__ */
+
+#endif /* _COVERITY_H__ */
diff --git a/src/bin/meson.build b/src/bin/meson.build
index 97b33bf..7b5458d 100644
--- a/src/bin/meson.build
+++ b/src/bin/meson.build
@@ -1,4 +1,4 @@
-terminology_sources = ['private.h',
+terminology_sources = ['private.h', 'coverity.h',
'about.c', 'about.h',
'col.c', 'col.h',
'config.c', 'config.h',
diff --git a/src/bin/private.h b/src/bin/private.h
index d7b6b2c..ce9b86b 100644
--- a/src/bin/private.h
+++ b/src/bin/private.h
@@ -13,6 +13,8 @@
#endif
#define gettext_noop(String) String
+#include "coverity.h"
+
extern int terminology_starting_up;
#ifdef ENABLE_FUZZING