diff options
author | sylvio <sylvio@FreeBSD.org> | 2010-04-03 08:12:43 +0800 |
---|---|---|
committer | sylvio <sylvio@FreeBSD.org> | 2010-04-03 08:12:43 +0800 |
commit | afcfd0eb5e11ed537c94a44399879f7049ab1d11 (patch) | |
tree | cc45f23ac1203b021a52a9ea3e803c51fc13f994 /net | |
parent | e31cae75eb7c9523cafa39247e0a7c7313b1808a (diff) | |
download | freebsd-ports-gnome-afcfd0eb5e11ed537c94a44399879f7049ab1d11.tar.gz freebsd-ports-gnome-afcfd0eb5e11ed537c94a44399879f7049ab1d11.tar.zst freebsd-ports-gnome-afcfd0eb5e11ed537c94a44399879f7049ab1d11.zip |
- Unbreak on 9.0-CURRENT by fixing utmpx.h support.
PR: ports/144937
Submitted by: Ryan Steinmetz <rpsfa@rit.edu> (maintainer)
Approved by: itetcu (mentor)
Diffstat (limited to 'net')
-rw-r--r-- | net/freeradius/Makefile | 4 | ||||
-rw-r--r-- | net/freeradius/files/patch-src__include__sysutmp.h | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index 910c8f92bc48..a646a12d435c 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -63,10 +63,6 @@ OPTIONS+= PGSQL "With PostgreSQL database support" off \ .include <bsd.port.pre.mk> -.if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx -.endif - # Default requirements for rc script _REQUIRE= NETWORKING SERVERS diff --git a/net/freeradius/files/patch-src__include__sysutmp.h b/net/freeradius/files/patch-src__include__sysutmp.h new file mode 100644 index 000000000000..1589ee1d283c --- /dev/null +++ b/net/freeradius/files/patch-src__include__sysutmp.h @@ -0,0 +1,20 @@ +--- ./src/include/sysutmp.h.orig 2009-12-30 10:44:35.000000000 -0500 ++++ ./src/include/sysutmp.h 2010-03-06 09:32:13.075571526 -0500 +@@ -30,7 +30,7 @@ + # define UT_NAMESIZE 32 + # define UT_LINESIZE 32 + # define UT_HOSTSIZE 257 +-#ifdef hpux ++#if defined(hpux) || defined(__FreeBSD__) + # define ut_name ut_user + #endif + #else +@@ -43,7 +43,7 @@ + # define UT_HOSTSIZE 64 + #endif + +-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(__OpenBSD__) || defined(__APPLE__) ++#if (defined(__FreeBSD__) && !defined(HAVE_UTMPX_H)) || defined(__NetBSD__) || defined(bsdi) || defined(__OpenBSD__) || defined(__APPLE__) + # ifndef UTMP_FILE + # define UTMP_FILE "/var/run/utmp" + # endif |