mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Back out native bswap commit for FreeBSD 4.x, where it does not compile.
This commit is contained in:
parent
c3222399bc
commit
e419d051b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134986
@ -10,7 +10,7 @@
|
||||
+
|
||||
#ifdef HAVE_BYTESWAP_H
|
||||
#include <byteswap.h>
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 470000)
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
|
||||
+#include <sys/endian.h>
|
||||
+#define bswap_16(x) bswap16(x)
|
||||
+#define bswap_32(x) bswap32(x)
|
||||
|
@ -10,7 +10,7 @@
|
||||
+
|
||||
#ifdef HAVE_BYTESWAP_H
|
||||
#include <byteswap.h>
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 470000)
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
|
||||
+#include <sys/endian.h>
|
||||
+#define bswap_16(x) bswap16(x)
|
||||
+#define bswap_32(x) bswap32(x)
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define B2N_32(x) x = bswap_32(x)
|
||||
#define B2N_64(x) x = bswap_64(x)
|
||||
+
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 470000)
|
||||
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
|
||||
+#include <sys/endian.h>
|
||||
+#define B2N_16(x) be16toh(x)
|
||||
+#define B2N_32(x) be32toh(x)
|
||||
|
Loading…
Reference in New Issue
Block a user