This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation of 3.0.9 on openbsd/mips64


Hi,

the compilation of libffi 3.0.9 failed for me, because there is no sgidefs.h 
file in the system.

appended patch fixes it for me.


Sebastian
--- src/mips/ffitarget.h.orig	Fri May 28 05:31:34 2010
+++ src/mips/ffitarget.h	Fri May 28 05:32:35 2010
@@ -27,10 +27,12 @@
 #ifndef LIBFFI_TARGET_H
 #define LIBFFI_TARGET_H
 
+#ifndef __OpenBSD__
 #ifdef linux
 # include <asm/sgidefs.h>
 #else
 # include <sgidefs.h>
+#endif
 #endif
 #  ifndef _ABIN32
 #    define _ABIN32 _MIPS_SIM_NABI32

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]