From 5dc0242a4fcc4ef3c3cc42d55e21d9cc6bcbcbdb Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Tue, 11 Feb 2025 14:42:31 +0100 Subject: [PATCH] Fix building on Ubuntu 24.04 --- binding.gyp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/binding.gyp b/binding.gyp index 8882267..62f39e7 100644 --- a/binding.gyp +++ b/binding.gyp @@ -40,8 +40,9 @@ "HAVE_CDS", "_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION", ], - "cflags!": [ "-fno-rtti", "-fno-exceptions" ], - "cflags_cc!": [ "-fno-rtti", "-fno-exceptions" ], + "cflags!": [ "-fno-rtti", "-fno-exceptions", "-include cstdint.h" ], + "cflags_cc": [ "-include", "cstdint.h" ], + "cflags_cc!": [ "-fno-rtti", "-fno-exceptions", "-include", "cstdint.h" ], "xcode_settings": { "GCC_ENABLE_CPP_RTTI": "YES", "GCC_ENABLE_CPP_EXCEPTIONS": "YES",