$OpenBSD: patch-kmplot_kmplot_parser_cpp,v 1.3 2008/01/22 19:59:28 espie Exp $
--- kmplot/kmplot/parser.cpp.orig	Sat Jan  5 00:56:47 2008
+++ kmplot/kmplot/parser.cpp	Tue Jan 22 01:12:39 2008
@@ -46,6 +46,9 @@
 #include <assert.h>
 #include <cmath>
 #include <locale.h>
+#ifdef __OpenBSD__
+#define tgamma	gamma
+#endif
 
 double Parser::m_radiansPerAngleUnit = 0;
 
@@ -1035,7 +1038,9 @@ bool Parser::tryConstant()
 	CHECK_CONSTANT( "pi", M_PI );
 	CHECK_CONSTANT( PiSymbol, M_PI );
 	CHECK_CONSTANT( "e", M_E );
+#ifndef __OpenBSD__
 	CHECK_CONSTANT( InfinitySymbol, INFINITY );
+#endif
 	
 	return false;
 }
