curl / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Fix termios related build bug on android cross-compile.

From: <greearb_at_candelatech.com>
Date: Wed, 31 Jan 2018 14:52:05 -0800

From: Ben Greear <greearb_at_candelatech.com>

This makes it compile for me.

Signed-off-by: Ben Greear <greearb_at_candelatech.com>

---
 src/tool_cb_prg.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c
index 286a3ff..60a3804 100644
--- a/src/tool_cb_prg.c
+++ b/src/tool_cb_prg.c
@@ -35,6 +35,12 @@
 
 #include "memdebug.h" /* keep this as LAST include */
 
+#ifdef HAVE_TERMIOS_H
+#  include <termios.h>
+#elif defined(HAVE_TERMIO_H)
+#  include <termio.h>
+#endif
+
 /* 200 values generated by this perl code:
 
    my $pi = 3.1415;
-- 
2.7.5
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-31