[Mono-bugs] [Bug 43242][Wis] New - NetBSD support

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 18 May 2003 15:56:08 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by marc@informatik.uni-bremen.de.

http://bugzilla.ximian.com/show_bug.cgi?id=43242

--- shadow/43242	Sun May 18 15:56:08 2003
+++ shadow/43242.tmp.15378	Sun May 18 15:56:08 2003
@@ -0,0 +1,66 @@
+Bug#: 43242
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: NetBSD
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marc@informatik.uni-bremen.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NetBSD support
+
+Patch to support NetBSD 
+ 
+Index: configure.in 
+=================================================================== 
+RCS file: /mono/mono/configure.in,v 
+retrieving revision 1.132 
+diff -u -r1.132 configure.in 
+--- configure.in        6 May 2003 21:04:31 -0000       1.132 
++++ configure.in        18 May 2003 19:33:08 -0000 
+@@ -24,7 +24,16 @@ 
+                CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS" 
+                libdl= 
+                ;; 
+-       *-*-*bsd*) 
++       *-*-*netbsd*) 
++               platform_win32=no 
++               CPPFLAGS="$CPPFLAGS -D_REENTRANT" 
++               libmono_cflags="-D_REENTRANT" 
++               LDFLAGS="$LDFLAGS -pthread" 
++               libmono_ldflags="-pthread" 
++               AC_DEFINE(NEED_LINK_UNLINK) 
++               libdl= 
++               ;; 
++       *-*-*freebsd*|*-*-*openbsd*) 
+                platform_win32=no 
+                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" 
+                libmono_cflags="-D_THREAD_SAFE" 
+Index: mono/jit/jit.c 
+=================================================================== 
+RCS file: /mono/mono/mono/jit/jit.c,v 
+retrieving revision 1.296 
+diff -u -r1.296 jit.c 
+--- mono/jit/jit.c      4 May 2003 12:24:26 -0000       1.296 
++++ mono/jit/jit.c      18 May 2003 19:33:15 -0000 
+@@ -4207,8 +4207,11 @@ 
+        sigemptyset (&sa.sa_mask); 
+        sa.sa_flags = 0; 
+        //g_assert (syscall (SYS_sigaction, SIGILL, &sa, NULL) != -1); 
++#ifdef __NetBSD__ 
++       g_assert (sigaction (mono_thread_get_abort_signal (), &sa, NULL) != -1); 
++#else 
+        g_assert (syscall (SYS_sigaction, mono_thread_get_abort_signal (), &sa, 
+NULL) != -1); 
+-       //g_assert (sigaction (mono_thread_get_abort_signal (), &sa, NULL) != -1); 
++#endif 
+ 
+ #if 1 
+        /* catch SIGSEGV */