The attached patch fixes the tests under FreeBSD: malloc.h cannot be
used there, so it uses the correct include (also migrates them to the C
++ includes rather than the C ones).

HTH,

-- 
Diego Elio Pettenò — “Flameeyes”
http://blog.flameeyes.eu/

If you found a .asc file in this mail and know not what it is,
it's a GnuPG digital signature: http://www.gnupg.org/

From 8da80e890a57c76671d61acf2ee58d9686b7b271 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Diego=20Elio=20'Flameeyes'=20Petten=C3=B2?= <[email protected]>
Date: Tue, 19 May 2009 20:46:39 +0200
Subject: [PATCH 2/2] Fix tests on FreeBSD: malloc.h should not be used, stdlib.h should.

Also use the C++ proper includes instead of the C includes.
---
 test/cppscan1.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/cppscan1.h b/test/cppscan1.h
index 3fa0229..346dd9b 100644
--- a/test/cppscan1.h
+++ b/test/cppscan1.h
@@ -2,8 +2,8 @@
 #define _CPPSCAN1_H
 
 #include <iostream>
-#include <malloc.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
 
 using namespace std;
 
-- 
1.6.3.1

Attachment: signature.asc
Description: Questa è una parte del messaggio firmata digitalmente

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to