2011-04-22 07:37:46 -04:00
|
|
|
$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 @@
|
2002-03-30 15:46:26 -05:00
|
|
|
# include "config.h"
|
|
|
|
# endif
|
|
|
|
|
2011-04-22 07:37:46 -04:00
|
|
|
-#include <stdlib.h>
|
2002-03-30 15:46:26 -05:00
|
|
|
+#if defined(__OpenBSD__)
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+#include <sys/endian.h>
|
|
|
|
+#include <stddef.h>
|
2011-04-22 07:37:46 -04:00
|
|
|
+#include <stdlib.h>
|
2002-03-30 15:46:26 -05:00
|
|
|
+#else
|
|
|
|
#include <endian.h>
|
|
|
|
#include <byteswap.h>
|
2011-04-22 07:37:46 -04:00
|
|
|
#include <linux/string.h>
|
|
|
|
+#endif
|
|
|
|
|
2002-03-30 15:46:26 -05:00
|
|
|
#define __USE_GNU
|
|
|
|
/* need wcsrtomb */
|
|
|
|
#include <wchar.h>
|