diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-16 18:01:14 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-16 18:01:14 +0100 |
commit | 90455ce03749a646f7a8b46bd03a4d937cbbe0e6 (patch) | |
tree | 884f8e91404693e6ea54f92990861a2ba06c5641 /i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch | |
parent | b445d69f041062e4695cb23d656fb8613fcf381c (diff) | |
download | bootstrap32-90455ce03749a646f7a8b46bd03a4d937cbbe0e6.tar.xz |
patched tests and building autoconf in stage 4
Diffstat (limited to 'i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch')
-rw-r--r-- | i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch b/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch new file mode 100644 index 0000000..b69f423 --- /dev/null +++ b/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch @@ -0,0 +1,21 @@ +diff -rauN autoconf-2.69/lib/autoconf/go.m4 autoconf-2.69-go-test-351-OpenFile-patch/lib/autoconf/go.m4 +--- autoconf-2.69/lib/autoconf/go.m4 2012-01-21 14:46:39.000000000 +0100 ++++ autoconf-2.69-go-test-351-OpenFile-patch/lib/autoconf/go.m4 2018-03-16 16:46:23.323273368 +0100 +@@ -61,7 +61,7 @@ + # Produce source that performs I/O. + m4_define([_AC_LANG_IO_PROGRAM(Go)], + [AC_LANG_PROGRAM([import ( "fmt"; "os" )], +-[f, err := os.Open("conftest.out", os.O_CREATE|os.O_WRONLY, 0777) ++[f, err := os.OpenFile("conftest.out", os.O_CREATE|os.O_WRONLY, 0777) + if err != nil { + fmt.Println(err) + os.Exit(1) +@@ -107,7 +107,7 @@ + "os" + ) + ], +-[f, err := os.Open("conftest.val", os.O_CREATE|os.O_WRONLY, 0777) ++[f, err := os.OpenFile("conftest.val", os.O_CREATE|os.O_WRONLY, 0777) + if err != nil { + os.Exit(1) + } |