diff options
-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> |