autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.69-60-g


From: Stefano Lattarini
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.69-60-g5766355
Date: Wed, 02 Jan 2013 18:10:15 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5766355051ff8844adf47f34445172eaa9045723

The branch, master has been updated
       via  5766355051ff8844adf47f34445172eaa9045723 (commit)
      from  adc8482c102058ea9db2f22db90e0c995d35d174 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5766355051ff8844adf47f34445172eaa9045723
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jan 2 17:01:05 2013 +0100

    go: fix checks for about I/O functions
    
    Reference:
    <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00000.html>
    
    * lib/autoconf/go.m4 (_AC_LANG_IO_PROGRAM(Go), AC_LANG_INT_SAVE): Here,
    correctly use 'os.OpenFile()' <http://golang.org/pkg/os/#OpenFile>
    rather than 'os.Open()' <http://golang.org/pkg/os/#Open> (which has
    more restricted semantics and incompatible signature).
    
    Signed-off-by: Stefano Lattarini <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 lib/autoconf/go.m4 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/autoconf/go.m4 b/lib/autoconf/go.m4
index bf215bf..bf1a4ae 100644
--- a/lib/autoconf/go.m4
+++ b/lib/autoconf/go.m4
@@ -61,7 +61,7 @@ $2
 # 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 @@ import (
        "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)
  }


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

[Prev in Thread] Current Thread [Next in Thread]