nixpkgs-suyu/pkgs/games/crossfire/add-cstdint-include-to-crossfire-server.patch
Manuel Frischknecht b3d48a4f32 crossfire-server: fix build due to missing cstdint include
GCC 13 stopped including `cstdint` (and other headers) transitively
in most scenarios, causing build failures in programs that relied
on that behavior.

This change adds a missing `cstdint` include via patch to the
`crossfire-server` source, fixing such a build failure.
2024-01-26 23:20:49 +00:00

13 lines
268 B
Diff

diff --git a/include/Treasures.h b/include/Treasures.h
index 614078f..a00b4f6 100644
--- a/include/Treasures.h
+++ b/include/Treasures.h
@@ -13,6 +13,8 @@
#ifndef TREASURES_H
#define TREASURES_H
+#include <cstdint>
+
#include "AssetsCollection.h"
extern "C" {