]> granicus.if.org Git - curl/commitdiff
build: fix termios issue on android cross-compile
authorBen Greear <greearb@candelatech.com>
Wed, 31 Jan 2018 22:52:05 +0000 (23:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Feb 2018 07:07:45 +0000 (08:07 +0100)
Bug: https://curl.haxx.se/mail/lib-2018-01/0122.html
Signed-off-by: Ben Greear <greearb@candelatech.com>
src/tool_cb_prg.c

index 286a3ffbcf2470efbc22559fea1c39a66fae6cbd..60a3804f9d4c1bf4fdac9ed16d510fb90b89caff 100644 (file)
 
 #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;