Angel Pons submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Patrick Georgi: Looks good to me, approved Angel Pons: Looks good to me, approved
Fix building with musl libc

AFAIK, this shouldn't break anything, as glibc just includes fcntl.h
from sys/fcntl.h.

Change-Id: Ie74ae584619ae8cbc188855aedcf5596d7afcfc8
Signed-off-by: Evgeny Zinoviev <me@ch1p.io>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/48314
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
---
M i2c_helper_linux.c
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i2c_helper_linux.c b/i2c_helper_linux.c
index 0703518..5c191f9 100644
--- a/i2c_helper_linux.c
+++ b/i2c_helper_linux.c
@@ -17,7 +17,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>


To view, visit change 48314. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ie74ae584619ae8cbc188855aedcf5596d7afcfc8
Gerrit-Change-Number: 48314
Gerrit-PatchSet: 3
Gerrit-Owner: Evgeny Zinoviev <me@ch1p.io>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged