Allow for isnan() being a macro. Fixes build following libm changes.

ok martynas naddy
This commit is contained in:
sthen 2008-07-30 16:29:03 +00:00
parent 7585421c96
commit a81b03d386
2 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2007/09/06 19:15:14 naddy Exp $
# $OpenBSD: Makefile,v 1.21 2008/07/30 16:29:03 sthen Exp $
COMMENT= stand-alone Qt-based web browser
CATEGORIES= www x11
@ -14,8 +14,7 @@ EXTRACT_ONLY= konqueror3-embedded-0.2-${DATE}.tar.bz2
DIST_SUBDIR= kde
DISTFILES= konqueror3-embedded-0.2-${DATE}.tar.bz2 kdelibs-3.5.5.tar.bz2:0
PKGNAME= konqueror-${DATE}p2
PKGNAME= konqueror-${DATE}p3
HOMEPAGE= http://www.konqueror.org/embedded.html
MASTER_SITES= http://www.cirulla.net/kdenox-snapshots/snapshots/
MASTER_SITES0= ${MASTER_SITE_KDE:=stable/3.5.5/src/}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-konq-embed_kdesrc_kjs_operations_cpp,v 1.1 2008/07/30 16:29:03 sthen Exp $
--- konq-embed/kdesrc/kjs/operations.cpp.orig Tue Jul 29 02:15:27 2008
+++ konq-embed/kdesrc/kjs/operations.cpp Tue Jul 29 02:15:29 2008
@@ -55,7 +55,7 @@ using namespace KJS;
bool KJS::isNaN(double d)
{
-#ifdef HAVE_FUNC_ISNAN
+#if defined(HAVE_FUNC_ISNAN) || defined(isnan)
return isnan(d);
#elif defined HAVE_FLOAT_H
return _isnan(d) != 0;