diff options
Diffstat (limited to 'devel/mico')
-rw-r--r-- | devel/mico/Makefile | 2 | ||||
-rw-r--r-- | devel/mico/files/patch-include::mico::util.h | 25 |
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 |