$NetBSD: patch-ac,v 1.3 2012/07/03 18:17:26 joerg Exp $

--- astyle_main.cpp.orig	2001-01-20 17:02:14.000000000 +0000
+++ astyle_main.cpp
@@ -29,6 +29,8 @@
 #include <fstream>
 #include <string>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 
 #define IS_OPTION(arg,op)          ((arg).compare(op)==0)
@@ -149,7 +151,7 @@ void error(const char *why, const char* 
     exit(1);
 }
 
-
+bool parseOption(ASFormatter &, const string &, const string &);
 
 template<class ITER>
 bool parseOptions(ASFormatter &formatter,
@@ -650,7 +652,7 @@ void printHelpAndExit()
     exit(1);
 }
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
     ASFormatter formatter;
     vector<string> fileNameVector;
