summaryrefslogtreecommitdiff
path: root/os/os-solaris.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-12-16 09:53:24 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-12-16 09:53:56 +0100
commitd0983d0124fff305d0945098fe7b4b9c44657fd8 (patch)
tree138cca6e3812b36d65243912b04793e00c8ed20c /os/os-solaris.h
parentf8ed6d895233a874ce4e119f24d759445dff254d (diff)
downloadfio-d0983d0124fff305d0945098fe7b4b9c44657fd8.tar.gz
fio-d0983d0124fff305d0945098fe7b4b9c44657fd8.tar.bz2
Add Solaris helper object
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os-solaris.h')
-rw-r--r--os/os-solaris.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/os/os-solaris.h b/os/os-solaris.h
index 175654e8..c6419d83 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -103,17 +103,4 @@ static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
#define FIO_MADV_FREE MADV_FREE
#endif
-/*
- * Some Solaris versions don't have posix_memalign(), provide a private
- * weak alternative
- */
-static inline int __weak posix_memalign(void **ptr, size_t align, size_t size)
-{
- *ptr = memalign(align, size);
- if (*ptr)
- return 0;
-
- return ENOMEM;
-}
-
#endif