$NetBSD$

--- sentence.c.orig	2007-08-09 09:00:25.000000000 -0400
+++ sentence.c
@@ -40,8 +40,15 @@ with this program.  If not, write to the
 #else
 #define _(String) String
 #endif
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/config.h>
+#include <nbcompat/cdefs.h>
+#include <nbcompat/regex.h>
+#include <nbcompat/stdio.h>
+#else
 #include <regex.h>
 #include <stdio.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 
