diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-25 10:44:43 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-25 10:44:43 +0000 |
commit | 1f2bae50fc6966518767881824259cc6e74b9582 (patch) | |
tree | 45df371bd7a4f66ac40f6b91137a8accd491716b /www/oops | |
parent | e0cdb32d2b415d757b7c50fefbded3bab192f354 (diff) |
Notes
Diffstat (limited to 'www/oops')
-rw-r--r-- | www/oops/Makefile | 4 | ||||
-rw-r--r-- | www/oops/files/patch-src_lib.c | 12 |
2 files changed, 12 insertions, 4 deletions
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 <bsd.port.pre.mk> -.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 |