This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
compilation of 3.0.9 on openbsd/mips64
- From: Sebastian Reitenbach <sebastia at l00-bugdead-prods dot de>
- To: libffi-discuss at sourceware dot org
- Date: Fri, 28 May 2010 15:42:40 +0200
- Subject: 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