diff options
author | az <az@FreeBSD.org> | 2007-04-25 04:33:04 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2007-04-25 04:33:04 +0800 |
commit | 2a977326b769ab0d9a60963957dbba6b9303e47e (patch) | |
tree | 144306ca397f0e78b557977cc760f7ce28e25e8d | |
parent | 3fde9f7b79abac72b230a473906e55cf52089252 (diff) | |
download | freebsd-ports-gnome-2a977326b769ab0d9a60963957dbba6b9303e47e.tar.gz freebsd-ports-gnome-2a977326b769ab0d9a60963957dbba6b9303e47e.tar.zst freebsd-ports-gnome-2a977326b769ab0d9a60963957dbba6b9303e47e.zip |
- Fix build for 5.x
Obtained from: kris@broken.ports
-rw-r--r-- | net-p2p/dcd/Makefile | 4 | ||||
-rw-r--r-- | net-p2p/dcd/files/extra-src-net.h | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/net-p2p/dcd/Makefile b/net-p2p/dcd/Makefile index ad78d0b8d0fa..5b3713fdf1db 100644 --- a/net-p2p/dcd/Makefile +++ b/net-p2p/dcd/Makefile @@ -31,8 +31,8 @@ SUB_LIST= CONF_FILES="${CONF_FILES}" CONF_DIR="${PREFIX}/etc/dcd" .include <bsd.port.pre.mk> -.if ${OSVERSION} < 600000 -BROKEN= Does not compile on 5.x +.if ${OSVERSION} < 600020 +EXTRA_PATCHES= ${PATCHDIR}/extra-src-net.h .endif post-patch: diff --git a/net-p2p/dcd/files/extra-src-net.h b/net-p2p/dcd/files/extra-src-net.h new file mode 100644 index 000000000000..ae45b9910aad --- /dev/null +++ b/net-p2p/dcd/files/extra-src-net.h @@ -0,0 +1,15 @@ +--- src/net.h.orig Wed Aug 30 22:09:02 2006 ++++ src/net.h Wed Apr 25 00:25:29 2007 +@@ -13,6 +13,12 @@ + #if !defined( __vXhz__NET_H__INCLUDED__ ) + #define __vXhz__NET_H__INCLUDED__ + ++// Prior 600020 where no MSG_NOSIGNAL, so we will use SO_NOSIGPIPE ++#if defined (__FreeBSD__) ++ #ifndef MSG_NOSIGNAL ++ #define MSG_NOSIGNAL SO_NOSIGPIPE ++ #endif ++#endif + + + void disttcp(userrec_t *usr, char *msg); |