projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
time: fix overflow in timespec_add_msec
[fio.git]
/
os
/
os-netbsd.h
diff --git
a/os/os-netbsd.h
b/os/os-netbsd.h
index 2133d7a11b6dff9648d885c4285140ce8806a827..eac76cf26bb2ea9247ecaf394468b4987e831585 100644
(file)
--- a/
os/os-netbsd.h
+++ b/
os/os-netbsd.h
@@
-10,6
+10,7
@@
#include <sys/ioctl.h>
#include <sys/dkio.h>
#include <sys/disklabel.h>
#include <sys/ioctl.h>
#include <sys/dkio.h>
#include <sys/disklabel.h>
+#include <sys/endian.h>
/* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */
#define rb_node _rb_node
#include <sys/sysctl.h>
/* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */
#define rb_node _rb_node
#include <sys/sysctl.h>
@@
-25,7
+26,7
@@
#define FIO_HAVE_FS_STAT
#define FIO_HAVE_GETTID
#define FIO_HAVE_FS_STAT
#define FIO_HAVE_GETTID
-#undef FIO_HAVE_CPU_AFFINITY /*
XXX notye
t */
+#undef FIO_HAVE_CPU_AFFINITY /*
doesn't exis
t */
#define OS_MAP_ANON MAP_ANON
#define OS_MAP_ANON MAP_ANON
@@
-54,7
+55,7
@@
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
static inline int blockdev_invalidate_cache(struct fio_file *f)
{
static inline int blockdev_invalidate_cache(struct fio_file *f)
{
- return E
INVAL
;
+ return E
NOTSUP
;
}
static inline unsigned long long os_phys_mem(void)
}
static inline unsigned long long os_phys_mem(void)