ports/multimedia/mplayer/files/patch-bswap.h
Ion-Mihai Tetcu 326e416cf0 - Update to the latest mplayer release, 1.0pre8.
- OPTIONify
- Due to some changes in the official developent tree, some of our local
patches became obsolete and where removed.

PR:		ports/99871
Submitted by:	maintainer
2006-07-12 01:53:07 +00:00

20 lines
494 B
C

--- bswap.h.orig Sun Jun 11 20:35:47 2006
+++ bswap.h Thu Jun 15 10:31:42 2006
@@ -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 >= 500000)
+#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>