Add configure script
[fio.git] / lib / getopt.h
CommitLineData
67bf9823 1#ifndef CONFIG_GETOPT_LONG_ONLY
bf2e821a
CC
2
3#include <getopt.h>
4
67bf9823 5#else
bf2e821a
CC
6
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
67bf9823
JA
25#endif
26#endif