git: 3471c52e865c - main - science/segyio: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jun 2023 05:40:42 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=3471c52e865c96255cafac7b00d3998c69d0e2cb commit 3471c52e865c96255cafac7b00d3998c69d0e2cb Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-06-19 05:08:54 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-06-19 05:40:35 +0000 science/segyio: Fix build on 14 ... by using system functions instead of redefinitions of htobe..() and be..(). --- science/segyio/files/patch-lib_src_segy.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/science/segyio/files/patch-lib_src_segy.c b/science/segyio/files/patch-lib_src_segy.c new file mode 100644 index 000000000000..087d8a76074d --- /dev/null +++ b/science/segyio/files/patch-lib_src_segy.c @@ -0,0 +1,30 @@ +- prevent failures on 14 by using system functions instead of +- redefinitions of htobe..() and be..() + +--- lib/src/segy.c.orig 2023-06-19 05:03:27 UTC ++++ lib/src/segy.c +@@ -27,6 +27,8 @@ + #include <stdlib.h> + #include <string.h> + ++#include <sys/endian.h> ++ + #include <segyio/segy.h> + #include <segyio/util.h> + +@@ -112,6 +114,7 @@ static int encode( char* dst, + ) + #endif // __GNUC__ + ++#if 0 // disable htobe.. and be.. functions in favor of the ones from #include <sys/endian.h>1 + static uint16_t htobe16( uint16_t v ) { + #if HOST_LSB + return bswap16(v); +@@ -143,6 +146,7 @@ static uint32_t be32toh( uint32_t v ) { + return v; + #endif + } ++#endif + + /* + * DEPRECATED