pkgsrc-ng/devel/ddd/patches/patch-ddd_strclass.C
2013-09-26 17:14:40 +02:00

18 lines
392 B
C

$NetBSD: patch-ddd_strclass.C,v 1.1 2012/10/20 02:25:17 sbd Exp $
Define EOF if needed.
--- ddd/strclass.C.orig 2009-02-11 17:25:06.000000000 +0000
+++ ddd/strclass.C
@@ -40,6 +40,10 @@ extern "C" int malloc_verify();
#include <new>
#include <stdlib.h>
+#ifndef EOF
+# define EOF (-1)
+#endif
+
void string::error(const char* msg) const
{
std::cerr << "string: " << msg << "\n";