openbsd-ports/misc/hfsplus/patches/patch-libhfsp_src_swab_h
brad 0e994c4478 upgrade to hfsplus 1.0.4
--
From: drahn@
2003-01-05 01:59:34 +00:00

18 lines
455 B
Plaintext

$OpenBSD: patch-libhfsp_src_swab_h,v 1.2 2003/01/05 01:59:34 brad Exp $
--- libhfsp/src/swab.h.orig Tue Mar 5 14:50:29 2002
+++ libhfsp/src/swab.h Fri Jan 3 14:27:53 2003
@@ -24,8 +24,13 @@
* $Id: patch-libhfsp_src_swab_h,v 1.2 2003/01/05 01:59:34 brad Exp $
*/
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/endian.h>
+#else
#include <endian.h>
#include <byteswap.h>
+#endif
/* basic fuction:
value = swab_inc(ptr);