pkgsrc/sysutils/fam/patches/patch-ah
tnn 60578adc48 #include <stdio.h> earlier so NULL gets defined before use
#include <iostream> instead of <iostream.h> (deprecated)
Fixes build on modern Linux.
2009-07-19 18:14:59 +00:00

27 lines
700 B
Text

$NetBSD: patch-ah,v 1.6 2009/07/19 18:14:59 tnn Exp $
--- src/Interest.c++.orig 2003-01-18 15:18:12.000000000 +0100
+++ src/Interest.c++
@@ -20,10 +20,13 @@
// with this program; if not, write the Free Software Foundation, Inc., 59
// Temple Place - Suite 330, Boston MA 02111-1307, USA.
+#include <stdio.h>
#include "Interest.h"
#include <sys/param.h>
+#if HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
+#endif
#include <errno.h>
#include <string.h>
@@ -46,7 +49,7 @@
#include "Pollster.h"
#include "timeval.h"
-Interest *Interest::hashtable[];
+Interest *Interest::hashtable[HASHSIZE];
IMon Interest::imon(imon_handler);
bool Interest::xtab_verification = true;