View | Details | Raw Unified | Return to bug 140362 | Differences between
and this patch

Collapse All | Expand All

(-)configure (-5 / +6 lines)
Lines 2958-2964 Link Here
2958
			LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
2958
			LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
2959
			libmono_ldflags="$PTHREAD_LIBS"
2959
			libmono_ldflags="$PTHREAD_LIBS"
2960
		fi
2960
		fi
2961
		CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
2961
 		CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD6 -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP"
2962
 		libmono_cflags="$libmono_cflags -D_REENTRANT"
2962
		need_link_unlink=yes
2963
		need_link_unlink=yes
2963
2964
2964
cat >>confdefs.h <<\_ACEOF
2965
cat >>confdefs.h <<\_ACEOF
Lines 2972-2978 Link Here
2972
# TLS is only partially implemented on -CURRENT (compiler support
2973
# TLS is only partially implemented on -CURRENT (compiler support
2973
# but NOT library support)
2974
# but NOT library support)
2974
#
2975
#
2975
		with_tls=pthread
2976
#		with_tls=pthread
2976
		;;
2977
		;;
2977
	*-*-*openbsd*)
2978
	*-*-*openbsd*)
2978
		platform_win32=no
2979
		platform_win32=no
Lines 39414-39421 Link Here
39414
INTERP_SUPPORTED=no
39415
INTERP_SUPPORTED=no
39415
LIBC="libc.so.6"
39416
LIBC="libc.so.6"
39416
INTL="libc.so.6"
39417
INTL="libc.so.6"
39417
SQLITE="libsqlite.so.0"
39418
SQLITE="libsqlite.so.8"
39418
SQLITE3="libsqlite3.so.0"
39419
SQLITE3="libsqlite3.so.8"
39419
X11="libX11.so"
39420
X11="libX11.so"
39420
39421
39421
sizeof_register="SIZEOF_VOID_P"
39422
sizeof_register="SIZEOF_VOID_P"
Lines 39675-39681 Link Here
39675
		jit_wanted=true
39676
		jit_wanted=true
39676
		;;
39677
		;;
39677
	macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
39678
	macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
39678
        powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* )
39679
        powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc-*-freebsd*)
39679
		if test "x$ac_cv_sizeof_void_p" = "x8"; then
39680
		if test "x$ac_cv_sizeof_void_p" = "x8"; then
39680
			TARGET=POWERPC64;
39681
			TARGET=POWERPC64;
39681
			CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
39682
			CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
(-)mono/mini/mini-ppc.h (+8 lines)
Lines 281-286 Link Here
281
	#define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.__fpregs.__fpu_regs [(n)])
281
	#define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.__fpregs.__fpu_regs [(n)])
282
	#define UCONTEXT_REG_NIP(ctx)     _UC_MACHINE_PC(ctx)
282
	#define UCONTEXT_REG_NIP(ctx)     _UC_MACHINE_PC(ctx)
283
	#define UCONTEXT_REG_LNK(ctx)     ((ctx)->uc_mcontext.__gregs [_REG_LR])
283
	#define UCONTEXT_REG_LNK(ctx)     ((ctx)->uc_mcontext.__gregs [_REG_LR])
284
#elif defined(__FreeBSD__)
285
#include <ucontext.h>
286
	typedef ucontext_t os_ucontext;
287
288
	#define UCONTEXT_REG_Rn(ctx, n)   ((ctx)->uc_mcontext.mc_gpr [(n)])
289
	#define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.mc_fpreg [(n)])
290
	#define UCONTEXT_REG_NIP(ctx)     ((ctx)->uc_mcontext.mc_srr0)
291
	#define UCONTEXT_REG_LNK(ctx)     ((ctx)->uc_mcontext.mc_lr)
284
#else
292
#else
285
#error Unknown OS
293
#error Unknown OS
286
#endif
294
#endif

Return to bug 140362