Fix splice engine compile
[fio.git] / os / os-linux.h
index f86ed322c150429df9d7a8e99f70c3dbd19d4028..dd783be3a61e63ee5955ffa121a5831c2413fe07 100644 (file)
@@ -98,7 +98,7 @@ static inline int vmsplice(int fd, const struct iovec *iov,
 }
 #endif
 
-#ifdef SPLICE_F_UNMAP
+#ifndef SPLICE_F_UNMAP
 #define SPLICE_F_UNMAP (0x10)
 #endif
 
@@ -199,14 +199,6 @@ static inline long os_random_long(os_random_state_t *rs)
        return val;
 }
 
-static inline double os_random_double(os_random_state_t *rs)
-{
-       double val;
-
-       drand48_r(rs, &val);
-       return val;
-}
-
 static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
 {
        struct raw_config_request rq;