Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/fontconfig/dist fontconfig: fix lint build (G...



details:   https://anonhg.NetBSD.org/xsrc/rev/85c369fc171e
branches:  trunk
changeset: 7399:85c369fc171e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 22 19:57:59 2023 +0000

description:
fontconfig: fix lint build (GCC internals in <stdatomic.h>)

diffstat:

 external/mit/fontconfig/dist/config-fixups.h |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 5a544b28b89c -r 85c369fc171e external/mit/fontconfig/dist/config-fixups.h
--- a/external/mit/fontconfig/dist/config-fixups.h      Sat Jan 21 02:10:38 2023 +0000
+++ b/external/mit/fontconfig/dist/config-fixups.h      Sun Jan 22 19:57:59 2023 +0000
@@ -38,3 +38,11 @@
 #  define ALIGNOF_DOUBLE 4
 # endif
 #endif
+
+/*
+ * NetBSD's lint cannot handle GCC's built-in <stdatomic.h>:
+ * fcatomic.h(64): error: syntax error '__atomic_compare_exchange_ptr' [249]
+ */
+#ifdef lint
+# undef HAVE_STDATOMIC_PRIMITIVES
+#endif



Home | Main Index | Thread Index | Old Index