diff options
author | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2022-10-27 01:42:44 +0000 |
---|---|---|
committer | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2022-10-27 01:42:44 +0000 |
commit | 8d056b579a483362c97d2aa26b8a33fc7a7ea50b (patch) | |
tree | c6a0ce48c2128a9d46df6046a6443abea91259b6 | |
parent | 0116f5c591975ec7316fabaf7cd90903d9e86f15 (diff) | |
download | ports-8d056b579a483362c97d2aa26b8a33fc7a7ea50b.tar.gz ports-8d056b579a483362c97d2aa26b8a33fc7a7ea50b.zip |
biology/biosig: Make sure __LITTLE_ENDIAN is defined in include files.
Bump port revision.
PR: 267372
Approved by: yuri@freebsd.org
-rw-r--r-- | biology/biosig/Makefile | 1 | ||||
-rw-r--r-- | biology/biosig/files/patch-biosig4c++_biosig-dev.h | 11 |
2 files changed, 8 insertions, 4 deletions
diff --git a/biology/biosig/Makefile b/biology/biosig/Makefile index 62d1c621958d..b3ef73bf8f58 100644 --- a/biology/biosig/Makefile +++ b/biology/biosig/Makefile @@ -1,5 +1,6 @@ PORTNAME= biosig DISTVERSION= 2.4.3 +PORTREVISION= 1 CATEGORIES= biology MASTER_SITES= SF/${PORTNAME}/BioSig%20for%20C_C%2B%2B/src/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src diff --git a/biology/biosig/files/patch-biosig4c++_biosig-dev.h b/biology/biosig/files/patch-biosig4c++_biosig-dev.h index 39fedc40975c..8a489fdfc0db 100644 --- a/biology/biosig/files/patch-biosig4c++_biosig-dev.h +++ b/biology/biosig/files/patch-biosig4c++_biosig-dev.h @@ -1,4 +1,4 @@ ---- biosig4c++/biosig-dev.h.orig 2021-08-13 09:17:15 UTC +--- biosig4c++/biosig-dev.h.orig 2022-10-08 10:54:15 UTC +++ biosig4c++/biosig-dev.h @@ -35,6 +35,8 @@ #include <time.h> @@ -9,13 +9,16 @@ #ifdef __cplusplus extern "C" { -@@ -549,6 +551,9 @@ HDRTYPE* sopen_extended(const char* FileName, const ch +@@ -549,6 +551,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch #elif defined(__linux__) # include <endian.h> # include <byteswap.h> + +#elif defined(__FreeBSD__) +# include <machine/endian.h> ++# define __BIG_ENDIAN _BIG_ENDIAN ++# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# define __BYTE_ORDER _BYTE_ORDER - #elif defined(__GLIBC__) // for Hurd - # include <endian.h> + #elif defined(__FreeBSD__) + # include <machine/endian.h> |