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
This commit is contained in:
+8
-7
@@ -7,17 +7,17 @@
|
||||
* Jérôme Duval
|
||||
*/
|
||||
|
||||
// std C includes
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
// BeOS C includes
|
||||
#include <fs_info.h>
|
||||
#include <fs_index.h>
|
||||
#include <TypeConstants.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user