Compare commits
No commits in common. 'c9' and 'i10c-beta' have entirely different histories.
@ -0,0 +1,28 @@
|
||||
Avoid implicit int and implicit function declarations.
|
||||
|
||||
A mostly equivalent patch has been posted upstream:
|
||||
|
||||
<https://sourceforge.net/p/setserial/discussion/7060/thread/95d874c12c/?limit=25#1643>
|
||||
|
||||
diff --git a/setserial.c b/setserial.c
|
||||
index f184e98db07ceb59..d181327fc568ede4 100644
|
||||
--- a/setserial.c
|
||||
+++ b/setserial.c
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#include <sys/ioctl.h>
|
||||
+#include <unistd.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_ASM_IOCTLS_H
|
||||
#include <asm/ioctls.h>
|
||||
@@ -714,6 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
+int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int get_flag = 0, wild_intr_flag = 0;
|
@ -0,0 +1,17 @@
|
||||
This fixes a generic C99 compatibility issue in autoconf-generated
|
||||
code. No need to upstream this because the issue goes away if
|
||||
autoconf is re-run.
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 9d6084aa38e5d6e8..4d948816e1112d13 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -689,7 +689,7 @@ cat > conftest.$ac_ext << EOF
|
||||
#line 690 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
Loading…
Reference in new issue