diff options
author | cy <cy@FreeBSD.org> | 2011-12-07 05:22:17 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2011-12-07 05:22:17 +0800 |
commit | 3cbb5cc8a6ba60cfe33a9bb17a9dd3bf6b697dd6 (patch) | |
tree | 14af78dd0b6964696d6ee86acb0b8ef49e24cf27 /net/fspd | |
parent | 931ee8126ec52a8df6cabcf5853b65e3413eb8e8 (diff) | |
download | freebsd-ports-gnome-3cbb5cc8a6ba60cfe33a9bb17a9dd3bf6b697dd6.tar.gz freebsd-ports-gnome-3cbb5cc8a6ba60cfe33a9bb17a9dd3bf6b697dd6.tar.zst freebsd-ports-gnome-3cbb5cc8a6ba60cfe33a9bb17a9dd3bf6b697dd6.zip |
Fix build under 9.0.
Approved by: sylvio
Feature safe: yes
Diffstat (limited to 'net/fspd')
-rw-r--r-- | net/fspd/Makefile | 4 | ||||
-rw-r--r-- | net/fspd/files/patch-bsd_src-print.c | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/net/fspd/Makefile b/net/fspd/Makefile index ba64e5321a59..bec67767e4b0 100644 --- a/net/fspd/Makefile +++ b/net/fspd/Makefile @@ -43,10 +43,6 @@ OPTIONS= NOCLIENTS "Omit client commands" off \ .include <bsd.port.pre.mk> -.if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx -.endif - .if defined(WITH_INFINITE) SCONS_ARGS+= disable-timeout=yes .endif diff --git a/net/fspd/files/patch-bsd_src-print.c b/net/fspd/files/patch-bsd_src-print.c new file mode 100644 index 000000000000..7ef9eb2e710b --- /dev/null +++ b/net/fspd/files/patch-bsd_src-print.c @@ -0,0 +1,14 @@ +--- bsd_src/print.c.orig 2009-10-01 13:46:36.000000000 -0700 ++++ bsd_src/print.c 2011-12-06 13:05:42.177765575 -0800 +@@ -32,7 +32,11 @@ + #include <sys/param.h> + #include <grp.h> + #include <pwd.h> ++#if defined(__FreeBSD_version) && __FreeBSD_version > 900007 ++#include <utmpx.h> ++#else + #include <utmp.h> ++#endif + #ifdef TIME_WITH_SYS_TIME + # include <sys/time.h> + # include <time.h> |