https://chromium-review.googlesource.com/339680 https://bugs.gentoo.org/580554 From 7fff56afefd4e63dce2366636c084d4c1f1f95d4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Apr 2016 13:58:49 -0400 Subject: [PATCH] include sys/sysmacros.h for major() The major() func is defined in the sys/sysmacros.h header, so include it explicitly for the prototype. Upstream C libs are moving away from having sys/types.h include it all the time implicitly. BUG=None TEST=precq passes BRANCH=None Change-Id: I56b84138f08ded2376193403f9c9db22c5f24f71 --- diff --git a/cgpt/cgpt_wrapper.c b/cgpt/cgpt_wrapper.c index dcfaab9..1716cdd 100644 --- a/cgpt/cgpt_wrapper.c +++ b/cgpt/cgpt_wrapper.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include diff --git a/futility/dump_kernel_config_lib.c b/futility/dump_kernel_config_lib.c index 4fe990c..abf37ae 100644 --- a/futility/dump_kernel_config_lib.c +++ b/futility/dump_kernel_config_lib.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include