diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-05-10 00:15:53 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-05-10 00:15:53 +0000 |
commit | 228b59d4e8faa33209c647a4e24a7f4a28e17e20 (patch) | |
tree | d1e1e091d503b5d1be74c866a0e296cb09e7207d /multimedia/mplayer/files/patch-bswap.h | |
parent | Only declare the tests and post-install targets if we aren't in a slave (diff) |
o Add FreeBSD native byteswap support using <sys/endian.h>
o Bump PORTREVISION
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=134964
Diffstat (limited to 'multimedia/mplayer/files/patch-bswap.h')
-rw-r--r-- | multimedia/mplayer/files/patch-bswap.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-bswap.h b/multimedia/mplayer/files/patch-bswap.h new file mode 100644 index 000000000000..5cd0c6e78d07 --- /dev/null +++ b/multimedia/mplayer/files/patch-bswap.h @@ -0,0 +1,20 @@ +--- bswap.h.orig Thu Oct 21 08:54:57 2004 ++++ bswap.h Mon May 9 20:57:34 2005 +@@ -1,8 +1,17 @@ + #ifndef __BSWAP_H__ + #define __BSWAP_H__ + ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include <sys/param.h> ++#endif ++ + #ifdef HAVE_BYTESWAP_H + #include <byteswap.h> ++#elif (defined(__FreeBSD__) && __FreeBSD_version >= 470000) ++#include <sys/endian.h> ++#define bswap_16(x) bswap16(x) ++#define bswap_32(x) bswap32(x) ++#define bswap_64(x) bswap64(x) + #else + + #include <inttypes.h> |