$NetBSD: patch-ac,v 1.2 2006/02/05 22:45:54 joerg Exp $

--- intl/dcigettext.c.orig	2005-05-20 20:06:17.000000000 +0000
+++ intl/dcigettext.c
@@ -243,7 +243,9 @@ struct known_translation_t
 /* Root of the search tree with known translations.  We can use this
    only if the system provides the `tsearch' function family.  */
 #if defined HAVE_TSEARCH || defined _LIBC
-# include <search.h>
+# if defined HAVE_SEARCH_H
+#  include <search.h>
+# endif
 
 static void *root;
 
