projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not all platforms have ENODATA
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index b8df1da1f90756f68cd5fd15b50500b646ba55b3..cc131a288c1b2f5244bc279dfdffa6031017e39d 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-6,6
+6,9
@@
#include <getopt.h>
#include <assert.h>
#include <libgen.h>
#include <getopt.h>
#include <assert.h>
#include <libgen.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include "fio.h"
#include "parse.h"
#include "fio.h"
#include "parse.h"
@@
-553,6
+556,11
@@
static struct fio_option options[] = {
{ .ival = "posixaio",
.help = "POSIX asynchronous IO",
},
{ .ival = "posixaio",
.help = "POSIX asynchronous IO",
},
+#endif
+#ifdef FIO_HAVE_SOLARISAIO
+ { .ival = "solarisaio",
+ .help = "Solaris native asynchronous IO",
+ },
#endif
{ .ival = "mmap",
.help = "Memory mapped IO",
#endif
{ .ival = "mmap",
.help = "Memory mapped IO",
@@
-1275,7
+1283,7
@@
void fio_options_dup_and_init(struct option *long_options)
o = &options[0];
while (o->name) {
o = &options[0];
while (o->name) {
- long_options[i].name = o->name;
+ long_options[i].name =
(char *)
o->name;
long_options[i].val = FIO_GETOPT_JOB;
if (o->type == FIO_OPT_STR_SET)
long_options[i].has_arg = no_argument;
long_options[i].val = FIO_GETOPT_JOB;
if (o->type == FIO_OPT_STR_SET)
long_options[i].has_arg = no_argument;