diff options
author | tron <tron@pkgsrc.org> | 2007-12-28 15:00:45 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2007-12-28 15:00:45 +0000 |
commit | afa757d4172a06bd0eedc87d119fb91457a48db0 (patch) | |
tree | 0058ad10909cb413872ec95f777f3cd69db0c2ca /sysutils/fam | |
parent | ecdc58e2bda3de58ab12a8af493dd63854962c2c (diff) | |
download | pkgsrc-afa757d4172a06bd0eedc87d119fb91457a48db0.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/fam')
-rw-r--r-- | sysutils/fam/distinfo | 3 | ||||
-rw-r--r-- | sysutils/fam/patches/patch-be | 13 |
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); |