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:
parent
e4b4a99228
commit
a91b2ce415
|
@ -7,17 +7,17 @@
|
||||||
* Jérôme Duval
|
* 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_info.h>
|
||||||
#include <fs_index.h>
|
#include <fs_index.h>
|
||||||
#include <TypeConstants.h>
|
#include <TypeConstants.h>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <getopt.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
|
// 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
|
// didn't want to compile when including that directly. Since that file
|
||||||
|
@ -36,8 +36,7 @@ enum
|
||||||
#define GETOPT_HELP_OPTION_DECL \
|
#define GETOPT_HELP_OPTION_DECL \
|
||||||
"help", no_argument, 0, GETOPT_HELP_CHAR
|
"help", no_argument, 0, GETOPT_HELP_CHAR
|
||||||
|
|
||||||
static struct option const longopts[] =
|
static struct option const longopts[] = {
|
||||||
{
|
|
||||||
{"volume", required_argument, 0, 'd'},
|
{"volume", required_argument, 0, 'd'},
|
||||||
{"type", required_argument, 0, 't'},
|
{"type", required_argument, 0, 't'},
|
||||||
{"verbose", no_argument, 0, 'v'},
|
{"verbose", no_argument, 0, 'v'},
|
||||||
|
@ -45,9 +44,11 @@ static struct option const longopts[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void usage(int);
|
void usage(int);
|
||||||
const char* lookup_index_type(uint32);
|
const char* lookup_index_type(uint32);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int32 argc, char **argv)
|
main (int32 argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue