openbsd-ports/audio/rioutil/patches/patch-include_rio_internal_h
mjc 4f97894880 Initial import of rioutil-1.4.4
A utility designed for interfacing with Rio's third, fourth,
and fifth generations of portable mp3 players, including the
Rio 600/800/900/S-Series/Riot/psa[play/Fuse/Chiba/Cali.
2004-06-26 07:34:25 +00:00

29 lines
649 B
Plaintext

$OpenBSD: patch-include_rio_internal_h,v 1.1.1.1 2004/06/26 07:34:25 mjc Exp $
--- include/rio_internal.h.orig Mon Jan 19 23:41:20 2004
+++ include/rio_internal.h Wed Jun 23 19:56:43 2004
@@ -547,6 +547,8 @@ unsigned int crc32_rio (un
u_int32_t bswap_32(u_int32_t);
#elif defined (__NetBSD__)
#define bswap_32(x) bswap32(x)
+#elif defined (__OpenBSD__)
+#define bswap_32(x) swap32(x)
#endif
#ifndef HAVE_LIBGEN_H
@@ -563,10 +565,14 @@ char *basename(char *x);
#include <machine/endian.h>
-#else
+#elif defined (__OpenBSD__)
#include <sys/endian.h>
+
+#else
+
#include <sys/bswap.h>
+#include <sys/endian.h>
#endif