You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.7 KiB
88 lines
2.7 KiB
Index: configure |
|
--- configure.orig 2006-10-07 05:54:24 +0200 |
|
+++ configure 2006-10-08 10:51:50 +0200 |
|
@@ -38902,6 +38902,7 @@ |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
$ac_includes_default |
|
+#include <netdb.h> |
|
int |
|
main () |
|
{ |
|
Index: libguile/__scm.h |
|
--- libguile/__scm.h.orig 2006-02-18 07:08:44 +0100 |
|
+++ libguile/__scm.h 2006-10-08 10:51:50 +0200 |
|
@@ -421,7 +421,8 @@ |
|
* that all the state of the process is contained in the stack. |
|
*/ |
|
|
|
-#if defined (sparc) || defined (__sparc__) || defined (__sparc) |
|
+#if (defined (sparc) || defined (__sparc__) || defined (__sparc)) && \ |
|
+ (!defined(__FreeBSD__)) |
|
# define SCM_FLUSH_REGISTER_WINDOWS asm("ta 3") |
|
#else |
|
# define SCM_FLUSH_REGISTER_WINDOWS /* empty */ |
|
Index: libguile/filesys.c |
|
--- libguile/filesys.c.orig 2006-10-04 05:35:07 +0200 |
|
+++ libguile/filesys.c 2006-10-08 10:54:00 +0200 |
|
@@ -881,7 +881,7 @@ |
|
if (!SCM_DIR_OPEN_P (port)) |
|
SCM_MISC_ERROR ("Directory ~S is not open.", scm_list_1 (port)); |
|
|
|
-#if HAVE_READDIR_R |
|
+#if defined(HAVE_READDIR_R) && defined(__linux__) |
|
/* As noted in the glibc manual, on various systems (such as Solaris) the |
|
d_name[] field is only 1 char and you're expected to size the dirent |
|
buffer for readdir_r based on NAME_MAX. The SCM_MAX expressions below |
|
Index: libguile/gc_os_dep.c |
|
--- libguile/gc_os_dep.c.orig 2006-04-16 01:34:26 +0200 |
|
+++ libguile/gc_os_dep.c 2006-10-08 10:51:50 +0200 |
|
@@ -110,6 +110,14 @@ |
|
# define OPENBSD |
|
# define mach_type_known |
|
# endif |
|
+# if defined(__FreeBSD__) && defined(__sparc__) |
|
+# define FREEBSD |
|
+# include <machine/frame.h> |
|
+# define ALIGNMENT 8 |
|
+# define CPP_WORDSZ 64 |
|
+# define ALIGN_DOUBLE |
|
+# define mach_type_known |
|
+# endif |
|
# if defined(__NetBSD__) && defined(__powerpc__) |
|
# define POWERPC |
|
# define NETBSD |
|
@@ -244,7 +252,11 @@ |
|
# define ARM32 |
|
# define mach_type_known |
|
# endif |
|
-# if defined(__alpha) || defined(__alpha__) |
|
+# if defined(__FreeBSD__) && defined(__alpha__) |
|
+# define FREEBSD |
|
+# define ALPHA |
|
+# define mach_type_known |
|
+# elif defined(__alpha) || defined(__alpha__) |
|
# define ALPHA |
|
# if !defined(LINUX) |
|
# define OSF1 /* a.k.a Digital Unix */ |
|
@@ -1499,7 +1511,7 @@ |
|
# include <setjmp.h> |
|
#endif |
|
|
|
-#ifdef FREEBSD |
|
+#if defined(FREEBSD) && defined(I386) |
|
# include <machine/trap.h> |
|
#endif |
|
|
|
Index: libguile/guile.c |
|
--- libguile/guile.c.orig 2006-02-18 07:08:45 +0100 |
|
+++ libguile/guile.c 2006-10-08 10:51:50 +0200 |
|
@@ -68,7 +68,7 @@ |
|
{ |
|
#if !defined (__MINGW32__) |
|
/* libtool automagically inserts this variable into your executable... */ |
|
- extern const lt_dlsymlist lt_preloaded_symbols[]; |
|
+ extern const lt_dlsymlist *lt_preloaded_symbols; |
|
lt_dlpreload_default (lt_preloaded_symbols); |
|
#endif |
|
scm_boot_guile (argc, argv, inner_main, 0);
|
|
|