Thu Sep 29 18:25:13 2011 UTC ()
Fix build on NetBSD-current.


(wiz)
diff -r1.1.1.1 -r1.2 pkgsrc/devel/ctemplate/distinfo
diff -r0 -r1.1 pkgsrc/devel/ctemplate/patches/patch-src_tests_template__regtest.cc

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/ctemplate/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/ctemplate/distinfo 2011/05/12 12:32:09 1.1.1.1
+++ pkgsrc/devel/ctemplate/distinfo 2011/09/29 18:25:13 1.2
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.1.1.1 2011/05/12 12:32:09 adam Exp $ 1$NetBSD: distinfo,v 1.2 2011/09/29 18:25:13 wiz Exp $
2 2
3SHA1 (ctemplate-0.99.tar.gz) = 7fe974dfe90d35748564fa577f2c8be4b46f9663 3SHA1 (ctemplate-0.99.tar.gz) = 7fe974dfe90d35748564fa577f2c8be4b46f9663
4RMD160 (ctemplate-0.99.tar.gz) = b15cd6825d8f8ec841318ddb1b7afdadbc47931f 4RMD160 (ctemplate-0.99.tar.gz) = b15cd6825d8f8ec841318ddb1b7afdadbc47931f
5Size (ctemplate-0.99.tar.gz) = 787831 bytes 5Size (ctemplate-0.99.tar.gz) = 787831 bytes
 6SHA1 (patch-src_tests_template__regtest.cc) = 234fce61f0ebc72238276df21002dbe1397dbac2

File Added: pkgsrc/devel/ctemplate/patches/patch-src_tests_template__regtest.cc
$NetBSD: patch-src_tests_template__regtest.cc,v 1.1 2011/09/29 18:25:13 wiz Exp $

Include header for PATH_MAX.

--- src/tests/template_regtest.cc.orig	2010-04-17 01:46:16.000000000 +0000
+++ src/tests/template_regtest.cc
@@ -42,6 +42,7 @@
 // YY should start with 01 (not 00).  XX can be an arbitrary string.
 
 #include "config_for_unittests.h"
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>