summaryrefslogtreecommitdiff
path: root/core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-07-06 14:16:14 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-07-06 14:16:14 +0000
commitcd8798e269c2bf11a8b41843185b2c4d8ca9dddd (patch)
treebf6261fb06c0b5e79afba6b5131410394dbebce4 /core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch
parentdd9fa07939a7b1f6fd67def3c56358bbe4e7a493 (diff)
downloadpackages-cd8798e269c2bf11a8b41843185b2c4d8ca9dddd.tar.xz
core/autoconf: added i486 specific patches
Diffstat (limited to 'core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch')
-rw-r--r--core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch b/core/autoconf/autoconf-2.69-go-test-351-OpenFile.patch
new file mode 100644
index 00000000..b69f423d
--- /dev/null
+++ b/core/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)
+ }