Skip to content

Commit

Permalink
[core] Prefer the endian.h header file from glibc if available
Browse files Browse the repository at this point in the history
On the Debian kfreebsd port, both endian.h and sys/endian.h are
available. After discussing with the kfreebsd port maintainer and since
this is userspace related, we should prefer the one from the glibc

See: #2066
  • Loading branch information
bigon authored and maxsharabayko committed Aug 12, 2021
1 parent d7dcf0c commit 7728b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ written by

#endif

#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__)
#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(__GLIBC__)

# include <endian.h>

Expand Down Expand Up @@ -115,7 +115,7 @@ written by

# include <sys/endian.h>

#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)

# include <sys/endian.h>

Expand Down

0 comments on commit 7728b70

Please sign in to comment.