guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.7-179-g94c53


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.7-179-g94c53e0
Date: Sat, 09 Mar 2013 22:55:13 +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 Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=94c53e0601c3fb4a4dcd6d3bd602347a8253c167

The branch, stable-2.0 has been updated
       via  94c53e0601c3fb4a4dcd6d3bd602347a8253c167 (commit)
      from  aa59904eaec70c95fa95960f98ba9cbc62010e8d (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 94c53e0601c3fb4a4dcd6d3bd602347a8253c167
Author: Andy Wingo <address@hidden>
Date:   Sat Mar 9 23:55:01 2013 +0100

    provide getlogin declaration if needed.
    
    * configure.ac: Check for getlogin decl.
    * libguile/posix.c: Declare getlogin if needed.

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

Summary of changes:
 configure.ac     |    2 +-
 libguile/posix.c |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 31cb3a0..62ceb3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -919,7 +919,7 @@ AC_DEFUN([GUILE_FUNC_DECLARED], [
 GUILE_FUNC_DECLARED(sleep, unistd.h)
 GUILE_FUNC_DECLARED(usleep, unistd.h)
 
-AC_CHECK_DECLS([alarm])
+AC_CHECK_DECLS([getlogin alarm])
 
 AC_CHECK_DECLS([strptime],,,
 [#define _GNU_SOURCE /* ask glibc to give strptime prototype */
diff --git a/libguile/posix.c b/libguile/posix.c
index be4714b..99f758f 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -155,6 +155,13 @@
 int sethostname (char *name, size_t namelen);
 #endif
 
+#if defined HAVE_GETLOGIN && !HAVE_DECL_GETLOGIN
+/* MinGW doesn't supply this decl; see
+   http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00030.html for more
+   details.  */
+char *getlogin (void);
+#endif
+
 /* On NextStep, <utime.h> doesn't define struct utime, unless we
    #define _POSIX_SOURCE before #including it.  I think this is less
    of a kludge than defining struct utimbuf ourselves.  */


hooks/post-receive
-- 
GNU Guile



reply via email to

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