$NetBSD: patch-aa,v 1.3 2013/04/21 15:35:24 joerg Exp $

--- libguile/guile.c.orig	2005-09-28 17:18:28.000000000 +0000
+++ libguile/guile.c
@@ -60,6 +60,8 @@
 #include <winsock2.h>
 #endif
 
+#include <ltdl.h>
+
 /* Debugger interface (don't change the order of the following lines) */
 #define GDB_TYPE SCM
 #include <libguile/gdb_interface.h>
@@ -88,7 +90,6 @@ main (int argc, char **argv)
 {
 #ifdef DYNAMIC_LINKING
   /* libtool automagically inserts this variable into your executable... */
-  extern const scm_lt_dlsymlist lt_preloaded_symbols[];
   scm_lt_dlpreload_default (lt_preloaded_symbols);
 #endif
   scm_boot_guile (argc, argv, inner_main, 0);
