diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-06-23 06:57:53 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-10-27 17:52:05 +0000 |
commit | ede8dd0b9c0dcf1a2f1478e5cb4e035c148b9ed1 (patch) | |
tree | 5e508448b1b823ae1025e56b48a495325b7d3b80 /src/device | |
parent | 0edf6a59f8b5ad5dd6911078f349357fd36625ab (diff) |
src/{device,drivers}: Use 'include <stdlib.h>' when appropriate
Also, including <types.h>, is supposed to provide stdint and stddef.
Change-Id: I99918a5a77e759bc7d4192d2c3fd6ad493c70248
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33681
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_util.c | 1 | ||||
-rw-r--r-- | src/device/oprom/realmode/x86.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c index df66f5c620..d8a84316c0 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -16,6 +16,7 @@ #include <device/path.h> #include <device/pci_def.h> #include <device/resource.h> +#include <stdlib.h> #include <string.h> /** diff --git a/src/device/oprom/realmode/x86.c b/src/device/oprom/realmode/x86.c index 8ba0241ea4..1026ddb7ff 100644 --- a/src/device/oprom/realmode/x86.c +++ b/src/device/oprom/realmode/x86.c @@ -21,6 +21,7 @@ #include <device/pci_ids.h> #include <pc80/i8259.h> #include <pc80/i8254.h> +#include <stdlib.h> #include <string.h> #include <vbe.h> |