From a2d786f0e6a0db1c88d955ea80b040bebdea4396 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 12 Mar 2013 15:44:56 -0700 Subject: libpayload: Make keycode constants available outside of curses.h. And include the new, split out version in drivers/keyboard.c and drivers/usb/usbhid.c. Those files were including curses.h just for those definitions, but the include path was only fixed up to to point to the libpayload versions of those files if one of the variants of curses was compiled in. If neither was, gcc would fall back to the system version of that header which is wrong. Change-Id: I8c2ee0baf5f0702bd8c713c8dd4613a4bb269ce5 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/2762 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- payloads/libpayload/drivers/usb/usbhid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/libpayload/drivers/usb') diff --git a/payloads/libpayload/drivers/usb/usbhid.c b/payloads/libpayload/drivers/usb/usbhid.c index ee8ba63842..f14bda0c04 100644 --- a/payloads/libpayload/drivers/usb/usbhid.c +++ b/payloads/libpayload/drivers/usb/usbhid.c @@ -29,8 +29,8 @@ // #define USB_DEBUG +#include #include -#include enum { hid_subclass_none = 0, hid_subclass_boot = 1 }; typedef enum { hid_proto_boot = 0, hid_proto_report = 1 } hid_proto; -- cgit v1.2.3