$NetBSD$

--- src/dsl2dict.c.orig	2007-07-10 10:16:06.000000000 +0300
+++ src/dsl2dict.c
@@ -62,6 +62,10 @@
 
 #define _GNU_SOURCE
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
 #include <stdio.h>
 #include <wchar.h>
 #include <stdlib.h>
@@ -79,6 +83,13 @@
 #include <gtk/gtk.h>
 #include <glib.h>
 
+#if !HAVE_MEMPCPY
+void *mempcpy (void *dest, const void *src, size_t n);
+#endif
+
+#if !HAVE_GETLINE
+ssize_t getline (char **lineptr, size_t *n, FILE *stream);
+#endif
 
 #define BUFSIZE BUFSIZ
 #define UCS_MARK 0xFEFF
