23 lines
484 B
Plaintext
23 lines
484 B
Plaintext
$NetBSD: patch-af,v 1.5 2016/04/15 08:47:50 wiz 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(__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>
|