* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
* lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
+2011-01-25 Bruno Haible <bruno@clisp.org>
+
+ vma-iter: Treat Haiku like BeOS.
+ * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
+ * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
+
2011-01-25 Eric Blake <eblake@redhat.com>
c-stack: fix regression on cygwin when libsigsegv is present
# include <windows.h>
#endif
-#if defined __BEOS__ /* BeOS */
+#if defined __BEOS__ || defined __HAIKU__ /* BeOS, Haiku */
# include <OS.h>
#endif
address = (unsigned long)info.BaseAddress + info.RegionSize;
}
-#elif defined __BEOS__
+#elif defined __BEOS__ || defined __HAIKU__
/* Use the BeOS specific API. */
area_info info;
this platform.
Note that even when this macro is defined, vma_iterate() may still fail to
find any virtual memory area, for example if /proc is not mounted. */
-#if defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __sgi || defined __osf__ || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ || defined __BEOS__
+#if defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __sgi || defined __osf__ || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ || defined __BEOS__ || defined __HAIKU__
# define VMA_ITERATE_SUPPORTED 1
#endif