summaryrefslogtreecommitdiff
path: root/util/ec_uartd.c
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2013-04-11 10:39:24 -0700
committerChromeBot <chrome-bot@google.com>2013-04-16 09:43:45 -0700
commit357e508392ca37b60ea17a9ac5725f84586aac9e (patch)
tree20a2800b1fee7e81f8c172dab0df03abdd8c0147 /util/ec_uartd.c
parent0498d687326aca32e074e74e970a6e32fc839d93 (diff)
downloadchrome-ec-357e508392ca37b60ea17a9ac5725f84586aac9e.tar.gz
Allow either libftdi or libftdi1 at compile time.
Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=none BUG=chromium:222299 TEST=manual, from chroot: 1. Install libftdi1 (https://gerrit.chromium.org/gerrit/#/c/44731/) 2. cd <path>/ec && make -B - compiles successfully 3. Install libftdi 4. cd <path>/ec && make -B - still compiles successfully Change-Id: I6818d53faa1389937872b0a9826534db4760e448 Reviewed-on: https://gerrit.chromium.org/gerrit/47875 Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'util/ec_uartd.c')
-rw-r--r--util/ec_uartd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ec_uartd.c b/util/ec_uartd.c
index 24949545f5..e930a34e69 100644
--- a/util/ec_uartd.c
+++ b/util/ec_uartd.c
@@ -19,8 +19,11 @@
#endif
#include <fcntl.h>
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#include <ftdi.h>
+#pragma GCC diagnostic pop
#include <getopt.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>