blob: bc8a2684495cf4cafa692dea4f11597823347ecf [file] [log] [blame]
Jens Axboe66837452013-01-25 14:36:46 -07001#ifdef CONFIG_GETOPT_LONG_ONLY
Cigy Cyriacbf2e8212010-08-10 19:51:11 -04002
3#include <getopt.h>
4
Jens Axboe67bf9822013-01-10 11:23:19 +01005#else
Cigy Cyriacbf2e8212010-08-10 19:51:11 -04006
7#ifndef _GETOPT_H
8#define _GETOPT_H
9
10struct option {
11 const char *name;
12 int has_arg;
13 int *flag;
14 int val;
15};
16
17enum {
18 no_argument = 0,
19 required_argument = 1,
20 optional_argument = 2,
21};
22
23int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
24
Jens Axboe67bf9822013-01-10 11:23:19 +010025#endif
26#endif