$OpenBSD: patch-mozilla_js_src_ctypes_libffi_src_x86_freebsd_S,v 1.1 2013/04/06 14:50:04 landry Exp $
backport devel/libffi/patches/patch-src_x86_freebsd_S
Fix stack alignment on *BSD/i386
http://sourceware.org/ml/libffi-discuss/2013/msg00127.html
--- mozilla/js/src/ctypes/libffi/src/x86/freebsd.S.orig	Sat Apr  6 11:28:30 2013
+++ mozilla/js/src/ctypes/libffi/src/x86/freebsd.S	Sat Apr  6 11:29:07 2013
@@ -49,6 +49,9 @@ ffi_call_SYSV:
 	movl  16(%ebp),%ecx
 	subl  %ecx,%esp
 
+	/* Align the stack pointer to 16-bytes */
+	andl  $0xfffffff0, %esp
+
 	movl  %esp,%eax
 
 	/* Place all of the ffi_prep_args in position  */
