From a91b2ce415f44817cda2b7e28d8bbd46f833d7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 20 Jan 2006 19:54:59 +0000 Subject: [PATCH] Fixed build (at least with GCC4) - exit() is declared in stdlib.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16013 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/rmindex.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/bin/rmindex.cpp b/src/bin/rmindex.cpp index 776093c954..b1dfcd0be0 100644 --- a/src/bin/rmindex.cpp +++ b/src/bin/rmindex.cpp @@ -7,17 +7,17 @@ * Jérôme Duval */ -// std C includes -#include -#include -#include -// BeOS C includes #include #include #include +#include #include +#include +#include +#include + // The following enum and #define are copied from gnu/sys2.h, because it // didn't want to compile when including that directly. Since that file @@ -36,8 +36,7 @@ enum #define GETOPT_HELP_OPTION_DECL \ "help", no_argument, 0, GETOPT_HELP_CHAR -static struct option const longopts[] = -{ +static struct option const longopts[] = { {"volume", required_argument, 0, 'd'}, {"type", required_argument, 0, 't'}, {"verbose", no_argument, 0, 'v'}, @@ -45,9 +44,11 @@ static struct option const longopts[] = {0, 0, 0, 0} }; + void usage(int); const char* lookup_index_type(uint32); + int main (int32 argc, char **argv) {