e4bb8095e9
- malloc.h breaks actively on FreeBSD for a long time, use stdlib.h as suggested; - treat FreeBSD uniformly with other BSD systems.
22 lines
509 B
Text
22 lines
509 B
Text
$NetBSD: patch-af,v 1.4 2014/03/25 23:06:07 asau Exp $
|
|
|
|
--- include/search.h.orig 2008-10-29 08:42:10.000000000 -0400
|
|
+++ include/search.h
|
|
@@ -20,7 +20,17 @@
|
|
#ifndef _SEARCH_H
|
|
#define _SEARCH_H 1
|
|
|
|
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
|
|
#include <features.h>
|
|
+#else
|
|
+#ifdef __sun
|
|
+#define __P(x) x
|
|
+#define __BEGIN_DECLS
|
|
+#define __END_DECLS
|
|
+#endif
|
|
+#define __PMT __P
|
|
+typedef void * __ptr_t;
|
|
+#endif
|
|
|
|
#define __need_size_t
|
|
#include <stddef.h>
|