Author: kaloz Date: 2014-10-20 12:00:02 +0200 (Mon, 20 Oct 2014) New Revision: 43000
Added: trunk/package/network/utils/comgt/patches/002-termios.patch Modified: trunk/package/network/utils/comgt/Makefile Log: [comgt]: fix compile against musl Signed-off-by: Imre Kaloz <[email protected]> Modified: trunk/package/network/utils/comgt/Makefile =================================================================== --- trunk/package/network/utils/comgt/Makefile 2014-10-20 09:23:55 UTC (rev 42999) +++ trunk/package/network/utils/comgt/Makefile 2014-10-20 10:00:02 UTC (rev 43000) @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ PKG_NAME:=comgt PKG_VERSION:=0.32 -PKG_RELEASE:=23 +PKG_RELEASE:=24 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/comgt Added: trunk/package/network/utils/comgt/patches/002-termios.patch =================================================================== --- trunk/package/network/utils/comgt/patches/002-termios.patch (rev 0) +++ trunk/package/network/utils/comgt/patches/002-termios.patch 2014-10-20 10:00:02 UTC (rev 43000) @@ -0,0 +1,29 @@ +--- a/comgt.c ++++ b/comgt.c +@@ -30,7 +30,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <signal.h> +-#include <termio.h> ++#include <termios.h> + #include <fcntl.h> + #include <unistd.h> + #include <string.h> +@@ -81,7 +81,7 @@ char token[MAXTOKEN]; /* For gettoken( + char scriptfile[MAXPATH]; /* Script file name */ + char scriptfilepath[MAXPATH]; /* temp storage for full path */ + BOOL verbose=0; /* Log actions */ +-struct termio cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */ ++struct termios cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */ + int comfd=0; /* Communication file descriptor. Defaults to stdin. */ + char msg[STRINGL]; /* Massage messages here */ + int preturn,returns[MAXGOSUBS]; +@@ -926,7 +926,7 @@ void setcom(void) { + } + + void doset(void) { +- struct termio console; ++ struct termios console; + int a,b; + gettoken(); + if(strcmp(token,"echo")==0) { _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
