summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authortron <tron>2007-12-28 15:00:45 +0000
committertron <tron>2007-12-28 15:00:45 +0000
commitc35cdea3f471f44264098c152faf3926052da5c5 (patch)
tree0058ad10909cb413872ec95f777f3cd69db0c2ca /sysutils
parent25c47db172ed9b721381faf7c9ff7edd4e76b343 (diff)
downloadpkgsrc-c35cdea3f471f44264098c152faf3926052da5c5.tar.gz
Add C++ const-cast to fix build under Mac OS X Leopard where the second
argument to FD_ISSET() is not declared "const".
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/fam/distinfo3
-rw-r--r--sysutils/fam/patches/patch-be13
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/fam/distinfo b/sysutils/fam/distinfo
index eedf34c4bb4..3c1f035bd46 100644
--- a/sysutils/fam/distinfo
+++ b/sysutils/fam/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2007/12/16 14:25:14 cjep Exp $
+$NetBSD: distinfo,v 1.29 2007/12/28 15:00:45 tron Exp $
SHA1 (fam-2.7.0.tar.gz) = 6c2316f02acf89a41c42ffc3d7fd9cf5eada83a8
RMD160 (fam-2.7.0.tar.gz) = 1895b578d6a141c36d5bee4e3fbbc2a298a91430
@@ -33,3 +33,4 @@ SHA1 (patch-ba) = 2f41331994a56eb70364beab70d40ac0bbd1b050
SHA1 (patch-bb) = aef31edd9715c8aa0be2f02ebe663bad30e0791a
SHA1 (patch-bc) = 6265e9739013a5303aa98173a6792df924c4c964
SHA1 (patch-bd) = 57aa687caedbadf021dade94f68f521ee06736e2
+SHA1 (patch-be) = feba6d8090778e47467fbfed13e78bab2eacef42
diff --git a/sysutils/fam/patches/patch-be b/sysutils/fam/patches/patch-be
new file mode 100644
index 00000000000..8868cd40cd9
--- /dev/null
+++ b/sysutils/fam/patches/patch-be
@@ -0,0 +1,13 @@
+$NetBSD: patch-be,v 1.1 2007/12/28 15:00:45 tron Exp $
+
+--- src/Scheduler.c++.orig 2003-01-18 14:18:12.000000000 +0000
++++ src/Scheduler.c++ 2007-12-28 14:57:21.000000000 +0000
+@@ -309,7 +309,7 @@
+ {
+ if (fds)
+ for (int fd = 0; fd < nfds; fd++)
+- if (FD_ISSET(fd, fds))
++ if (FD_ISSET(fd, const_cast<fd_set *>(fds)))
+ { FDInfo *fp = &fdinfo[fd];
+ assert(iotype == &FDInfo::read || iotype == &FDInfo::write);
+ (fp->*iotype).handler(fd, (fp->*iotype).closure);