Floris Bruynooghe
2011-09-28 05:41:23 UTC
Hi
Attached is a patch to enable support for GNU/HURD to omniorb. It
would be nice if this could be included upstream.
Thanks
Floris
--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
-------------- next part --------------
Description: Support GNU/HURD
Forwarded: no
Author: Pino Toscano <***@debian.org>
Last-Update: 2011-09-28
--- a/configure.ac
+++ b/configure.ac
@@ -204,6 +204,7 @@
*-*-netbsd*) plat_name="NetBSD"; plat_def="__netbsd__"; os_v="1";;
*-*-openbsd*) plat_name="OpenBSD"; plat_def="__openbsd__"; os_v="3";;
*-*-sco*) plat_name="OSR5"; plat_def="__osr5__"; os_v="5";;
+ *-*-gnu*) plat_name="GNU"; plat_def="__hurd__" ; os_v="0";;
esac
AC_SUBST(PLATFORM_NAME, $plat_name)
--- a/include/omnithread.h
+++ b/include/omnithread.h
@@ -184,6 +184,9 @@
#elif defined(__Lynx__)
#include <omnithread/posix.h>
+#elif defined(__GNU__)
+#include <omnithread/posix.h>
+
#else
#error "No implementation header file"
#endif
--- a/mk/beforeauto.mk.in
+++ b/mk/beforeauto.mk.in
@@ -775,6 +775,13 @@
endif
###################
+ifdef GNU
+OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10
+OMNITHREAD_CPPFLAGS = -D_REENTRANT -pthread
+OMNITHREAD_LIB += -lpthread
+endif
+
+###################
ifdef SunOS
IMPORT_CPPFLAGS += -D__sunos__
OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10 \
Attached is a patch to enable support for GNU/HURD to omniorb. It
would be nice if this could be included upstream.
Thanks
Floris
--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
-------------- next part --------------
Description: Support GNU/HURD
Forwarded: no
Author: Pino Toscano <***@debian.org>
Last-Update: 2011-09-28
--- a/configure.ac
+++ b/configure.ac
@@ -204,6 +204,7 @@
*-*-netbsd*) plat_name="NetBSD"; plat_def="__netbsd__"; os_v="1";;
*-*-openbsd*) plat_name="OpenBSD"; plat_def="__openbsd__"; os_v="3";;
*-*-sco*) plat_name="OSR5"; plat_def="__osr5__"; os_v="5";;
+ *-*-gnu*) plat_name="GNU"; plat_def="__hurd__" ; os_v="0";;
esac
AC_SUBST(PLATFORM_NAME, $plat_name)
--- a/include/omnithread.h
+++ b/include/omnithread.h
@@ -184,6 +184,9 @@
#elif defined(__Lynx__)
#include <omnithread/posix.h>
+#elif defined(__GNU__)
+#include <omnithread/posix.h>
+
#else
#error "No implementation header file"
#endif
--- a/mk/beforeauto.mk.in
+++ b/mk/beforeauto.mk.in
@@ -775,6 +775,13 @@
endif
###################
+ifdef GNU
+OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10
+OMNITHREAD_CPPFLAGS = -D_REENTRANT -pthread
+OMNITHREAD_LIB += -lpthread
+endif
+
+###################
ifdef SunOS
IMPORT_CPPFLAGS += -D__sunos__
OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10 \