Fix compilation on centos 7
authorManish Dusane <dusane@gmail.com>
Wed, 15 Aug 2018 18:06:14 +0000 (12:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Aug 2018 18:06:14 +0000 (12:06 -0600)
"log.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘log_err’"

Fixes: https://github.com/axboe/fio/issues/651
Signed-off-by: Jens Axboe <axboe@kernel.dk>
log.h

diff --git a/log.h b/log.h
index b50d4484cb575f295bae3428a7e5bd94574ef750..562f3f42027064898829202025c54ea9047170a4 100644 (file)
--- a/log.h
+++ b/log.h
@@ -3,6 +3,7 @@
 
 #include <stdio.h>
 #include <stdarg.h>
+#include <unistd.h>
 
 #include "lib/output_buffer.h"