ports/devel/qtscriptgenerator/files/patch-generator-parser-rpp-preprocessor.cpp
Alberto Villa 6ef2b73065 - Remove check for FreeBSD 6.x.
- Fix build with GCC > 4.2.

Submitted by:	Raphael Kubo da Costa <kubito@gmail.com> via area51
2011-07-17 17:25:39 +00:00

14 lines
379 B
C++

This patch is needed in order to make the port build with a gcc newer than the one in base.
FILE* is used in preprocessor.cpp, so a suitable declaration is needed.
--- generator/parser/rpp/preprocessor.cpp
+++ generator/parser/rpp/preprocessor.cpp
@@ -41,6 +41,7 @@
#include "preprocessor.h"
+#include <cstdio>
#include <string>
// register callback for include hooks