gentoo-ebuilds/sys-block/mtx/files/mtx-1.3.12-c23.patch
David Seifert 097354da86
sys-block/mtx: fix c23 pointer declarations
Closes: https://bugs.gentoo.org/943904
Signed-off-by: David Seifert <soap@gentoo.org>
2025-11-30 22:17:46 +01:00

16 lines
387 B
Diff

Description: Fix compilation with gcc15 / c23
Author: Dan Horák <dan@danny.cz>
Bug-Debian: http://bugs.debian.org/1097421
--- a/mtx.h
+++ b/mtx.h
@@ -222,7 +222,8 @@ typedef unsigned char Direction_T;
#define Input 0
#define Output 1
#else
-typedef enum { false, true } boolean;
+#include <stdbool.h>
+typedef bool boolean;
typedef enum { Input, Output } Direction_T;
#endif