From ccb492f209b57055e2e5456b48d5d3cce809734f Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 20 Mar 2023 22:08:51 +0100 Subject: math/readstat: repair build (missing prototype in modern C) --- math/readstat/files/patch-src_readstat__bits.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 math/readstat/files/patch-src_readstat__bits.c (limited to 'math/readstat/files/patch-src_readstat__bits.c') diff --git a/math/readstat/files/patch-src_readstat__bits.c b/math/readstat/files/patch-src_readstat__bits.c new file mode 100644 index 000000000000..5ccc9f5e1147 --- /dev/null +++ b/math/readstat/files/patch-src_readstat__bits.c @@ -0,0 +1,11 @@ +--- src/readstat_bits.c.orig 2023-03-16 22:38:26 UTC ++++ src/readstat_bits.c +@@ -8,7 +8,7 @@ + + #include "readstat_bits.h" + +-int machine_is_little_endian() { ++int machine_is_little_endian(void) { + int test_byte_order = 1; + return ((char *)&test_byte_order)[0]; + } -- cgit v1.2.3