openbsd-ports/misc/hfsplus/patches/patch-libhfsp_src_unicode_c
sthen de43b3f3e8 - unbreak the build following NULL changes
- remove libutf8 dependency, base locale support seems enough
- remove ONLY_FOR_ARCHS, it may possibly be useful on USB drives too

not really tested but the port doesn't build as-is and has
been on ports@ for most of a week without feedback, so in it goes.
2011-04-22 11:37:46 +00:00

23 lines
528 B
Plaintext

$OpenBSD: patch-libhfsp_src_unicode_c,v 1.2 2011/04/22 11:37:46 sthen Exp $
--- libhfsp/src/unicode.c.orig Tue Mar 5 19:50:29 2002
+++ libhfsp/src/unicode.c Sun Apr 17 09:57:44 2011
@@ -13,11 +13,17 @@
# include "config.h"
# endif
-#include <stdlib.h>
+#if defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/endian.h>
+#include <stddef.h>
+#include <stdlib.h>
+#else
#include <endian.h>
#include <byteswap.h>
#include <linux/string.h>
+#endif
#define __USE_GNU
/* need wcsrtomb */
#include <wchar.h>