summaryrefslogtreecommitdiff
path: root/sysutils/heirloom-doc/patches/patch-aq
blob: 8344cff3087c6b1c4c64dd9bd83fbb26f6807e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aq,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $

Fix for Interix 3.5
--- libcommon/memalign.h.orig	Sun Jan 22 21:06:14 2006
+++ libcommon/memalign.h
@@ -26,10 +26,10 @@
 
 #if defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || \
 	defined (__NetBSD__) || defined (__OpenBSD__) || \
-	defined (__DragonFly__) || defined (__APPLE__)
+	defined (__DragonFly__) || defined (__APPLE__) || defined (__INTERIX)
 #include	<stdlib.h>
-
+#define HAVE_NO_MEMALIGN 1
 extern void	*memalign(size_t, size_t);
-#endif	/* __FreeBSD__ || __dietlibc__ || _AIX || __NetBSD__ || __OpenBSD__ ||
-	__DragonFly__ || __APPLE__ */
+#endif
+
 #endif	/* !LIBCOMMON_MEMALIGN_H */