diff --git a/www/oops/Makefile b/www/oops/Makefile index 6b154a97d3c7..9969fd5cc5f2 100644 --- a/www/oops/Makefile +++ b/www/oops/Makefile @@ -49,10 +49,6 @@ OPTIONS= GIGABASE "GigaBase storage" on \ .include -.if ${OSVERSION} >= 700015 -BROKEN= Does not compile on FreeBSD >= 7.0 -.endif - .if !defined(WITHOUT_GIGABASE) .if defined (WITH_DB4) BROKEN= "Only one DB storage can be used (First)" diff --git a/www/oops/files/patch-src_lib.c b/www/oops/files/patch-src_lib.c new file mode 100644 index 000000000000..8ddc6b6ef4c7 --- /dev/null +++ b/www/oops/files/patch-src_lib.c @@ -0,0 +1,12 @@ +--- src/lib.c.orig Thu May 25 12:28:53 2006 ++++ src/lib.c Thu May 25 12:30:17 2006 +@@ -306,6 +306,9 @@ + rc = gethostbyname_r(val, &he_b, &he_d); + if ( !rc ) he = &he_b; + else he = NULL; ++#elif defined(__FreeBSD__) ++ gethostbyname_r(val, &he_b, he_strb, sizeof(he_strb), &he, &he_errno); ++ + #else + he = gethostbyname_r(val, &he_b, he_strb, sizeof(he_strb), &he_errno); + #endif