ports/emulators/hfsplusutils/files/patch-swab.h
Sergei Kolobov 6a5d39ccfb Add hfsplusutils 1.0.4, utilities for accessing HFS+ filesystems.
This is a set of tools that allow access to HFS+ formatted
volumes. HFS+ is a modernized version of Apple Computers HFS
Filesystem. In addition in contains the library "libhfsp" which you
may use for your own experiments, all the tools are based on this
library. (A bit of understanding is still needed however).

Author:	Klaus Halfmann <klaus.halfmann@t-online.de>

PR:		59200
Submitted by:	Josh Elsasser <jre@vineyard.net>
2003-11-15 21:51:46 +00:00

16 lines
385 B
C

--- libhfsp/src/swab.h.orig Tue Mar 5 14:50:29 2002
+++ libhfsp/src/swab.h Tue Nov 11 14:53:14 2003
@@ -24,8 +24,11 @@
* $Id: swab.h,v 1.1.1.1 2002/03/05 19:50:29 klaus Exp $
*/
-#include <endian.h>
-#include <byteswap.h>
+#include <sys/endian.h>
+
+#define bswap_16 bswap16
+#define bswap_32 bswap32
+#define bswap_64 bswap64
/* basic fuction:
value = swab_inc(ptr);