summaryrefslogtreecommitdiff
path: root/devel/mico
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-11-24 03:27:17 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-11-24 03:27:17 +0000
commita5261ba95e693505d5d08b579680d14dc75e1411 (patch)
treee0d80aa8eb53a3c65c48466b32fbf8f63427493c /devel/mico
parentBROKEN: Size mismatch (diff)
- Fix build on 4.10.
Notes
Notes: svn path=/head/; revision=122274
Diffstat (limited to 'devel/mico')
-rw-r--r--devel/mico/Makefile2
-rw-r--r--devel/mico/files/patch-include::mico::util.h25
2 files changed, 27 insertions, 0 deletions
diff --git a/devel/mico/Makefile b/devel/mico/Makefile
index 69308322d7b6..0feed37e65d3 100644
--- a/devel/mico/Makefile
+++ b/devel/mico/Makefile
@@ -24,6 +24,8 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+#CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} \
+# CXXFLAGS="${CXXFLAGS}" CPP=${CPP}
OPTIONS= SERVICES "Build with all services, not only ORB" on \
SSL "Build with SSL" on \
diff --git a/devel/mico/files/patch-include::mico::util.h b/devel/mico/files/patch-include::mico::util.h
new file mode 100644
index 000000000000..6683fc75e49a
--- /dev/null
+++ b/devel/mico/files/patch-include::mico::util.h
@@ -0,0 +1,25 @@
+--- include/mico/util.h.orig Wed Nov 24 07:25:44 2004
++++ include/mico/util.h Wed Nov 24 07:25:29 2004
+@@ -24,6 +24,10 @@
+ #ifndef __mico_util_h__
+ #define __mico_util_h__
+
++#ifdef __FreeBSD__
++#include <sys/param.h>
++#endif
++
+ #include <CORBA.h>
+ #ifdef HAVE_ANSI_CPLUSPLUS_HEADERS
+ #include <iostream>
+@@ -205,7 +209,11 @@
+ #endif
+
+ #ifndef HAVE_GETHOSTNAME_PROTO
++#if (defined(__FreeBSD__) && __FreeBSD_version < 500000)
++extern "C" int gethostname (char *, int);
++#else
+ extern "C" int gethostname (char *, size_t);
++#endif
+ #endif
+
+ #ifndef HAVE_FINITE_PROTO