pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fam Add C++ const-cast to fix build under Mac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8b9892bf347
branches:  trunk
changeset: 536911:a8b9892bf347
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Dec 28 15:00:45 2007 +0000

description:
Add C++ const-cast to fix build under Mac OS X Leopard where the second
argument to FD_ISSET() is not declared "const".

diffstat:

 sysutils/fam/distinfo         |   3 ++-
 sysutils/fam/patches/patch-be |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r de8a7a077ab0 -r a8b9892bf347 sysutils/fam/distinfo
--- a/sysutils/fam/distinfo     Fri Dec 28 12:27:20 2007 +0000
+++ b/sysutils/fam/distinfo     Fri Dec 28 15:00:45 2007 +0000
@@ -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-bb) = aef31edd9715c8aa0be2f02ebe663bad30e0791a
 SHA1 (patch-bc) = 6265e9739013a5303aa98173a6792df924c4c964
 SHA1 (patch-bd) = 57aa687caedbadf021dade94f68f521ee06736e2
+SHA1 (patch-be) = feba6d8090778e47467fbfed13e78bab2eacef42
diff -r de8a7a077ab0 -r a8b9892bf347 sysutils/fam/patches/patch-be
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/fam/patches/patch-be     Fri Dec 28 15:00:45 2007 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index