nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 1.3 kB view raw
1From 08ece7871775c0d7bf4fdff64b961cdc256adf6c Mon Sep 17 00:00:00 2001 2From: Sergei Trofimovich <slyich@gmail.com> 3Date: Fri, 2 Aug 2024 22:12:03 +0100 4Subject: [PATCH] include/woff2/output.h: add missing <stdint.h> include 5 6Without the change `woff2` build fails on upcoming `gcc-15` as: 7 8 In file included from src/woff2_out.cc:9: 9 include/woff2/output.h:73:25: error: expected ')' before '*' token 10 73 | WOFF2MemoryOut(uint8_t* buf, size_t buf_size); 11 | ~ ^ 12 | ) 13 include/woff2/output.h:79:3: error: 'uint8_t' does not name a type 14 79 | uint8_t* buf_; 15 | ^~~~~~~ 16 include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>'; 17 this is probably fixable by adding '#include <cstdint>' 18 15 | #include <string> 19 +++ |+#include <cstdint> 20 16 | 21--- 22 include/woff2/output.h | 2 ++ 23 1 file changed, 2 insertions(+) 24 25diff --git a/include/woff2/output.h b/include/woff2/output.h 26index dc78ccf..b12d538 100644 27--- a/include/woff2/output.h 28+++ b/include/woff2/output.h 29@@ -9,6 +9,8 @@ 30 #ifndef WOFF2_WOFF2_OUT_H_ 31 #define WOFF2_WOFF2_OUT_H_ 32 33+#include <stdint.h> 34+ 35 #include <algorithm> 36 #include <cstring> 37 #include <memory>