Skip to content

Commit

Permalink
math/readstat: repair build (missing prototype in modern C)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriaan de Groot authored and Adriaan de Groot committed Mar 26, 2023
1 parent 567a4ec commit ccb492f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion math/readstat/Makefile
@@ -1,6 +1,6 @@
PORTNAME= readstat
DISTVERSION= 1.1.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= math kde
MASTER_SITES= https://github.com/WizardMac/ReadStat/releases/download/v${DISTVERSION}/

Expand Down
11 changes: 11 additions & 0 deletions 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];
}

0 comments on commit ccb492f

Please sign in to comment.