Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO compilation on centos 7 failed. log.h:12: error: #651

Closed
dusane opened this issue Aug 15, 2018 · 2 comments
Closed

FIO compilation on centos 7 failed. log.h:12: error: #651

dusane opened this issue Aug 15, 2018 · 2 comments

Comments

@dusane
Copy link
Contributor

dusane commented Aug 15, 2018

Keeping it short.

I faced build issues with latest fio pull with

"log.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘log_err’"

Adding unistd.h fixes this.

$ git diff
diff --git a/log.h b/log.h
index b50d448..562f3f4 100644
--- a/log.h
+++ b/log.h
@@ -3,6 +3,7 @@

#include <stdio.h>
#include <stdarg.h>
+#include <unistd.h>

#include "lib/output_buffer.h"

$

@axboe
Copy link
Owner

axboe commented Aug 15, 2018

Applied, thanks.

@axboe axboe closed this as completed in 35e2d88 Aug 15, 2018
@dusane
Copy link
Contributor Author

dusane commented Aug 15, 2018

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants