[Mono-dev] eglib patch to make it build on OpenBSD

Robert Nagy robert at openbsd.org
Wed Apr 28 04:10:33 EDT 2010


Hi

diff is attached
-------------- next part --------------
Index: eglib/configure.ac
===================================================================
--- eglib/configure.ac  (revision 156280)
+++ eglib/configure.ac  (working copy)
@@ -56,6 +56,10 @@
 i*86-*-darwin*)
     ORDER=G_LITTLE_ENDIAN
     ;;
+*-*-openbsd*)
+    CFLAGS="$CFLAGS -pthread"
+    LDFLAGS="$LDFLAGS -pthread"
+    ;;
 esac
 
 AC_SUBST(ORDER)
Index: eglib/src/gspawn.c
===================================================================
--- eglib/src/gspawn.c  (revision 156280)
+++ eglib/src/gspawn.c  (working copy)
@@ -71,6 +71,8 @@
  */
 gchar ***_NSGetEnviron();
 #define environ (*_NSGetEnviron())
+#else
+extern char **environ;
 #endif
 
 static int


More information about the Mono-devel-list mailing list