[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 03/15: Fix 'gethostname' prototype for x86_64-MinGW.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 03/15: Fix 'gethostname' prototype for x86_64-MinGW. |
Date: |
Mon, 12 Apr 2021 05:55:41 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit fc9ffa7181dfec5bf6f475afa61467e6640af034
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Mar 13 14:27:21 2021 +0100
Fix 'gethostname' prototype for x86_64-MinGW.
* lib/unistd.in.h (gethostname): Avoid 'rpl_gethostname' on x86_64-MinGW.
---
lib/unistd.in.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 5914fd5..ab3ca04 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -1239,6 +1239,12 @@ _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t
len)
_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
# endif
_GL_CXXALIASWARN (gethostname);
+#elif HAVE_WINSOCK2_H
+# include <winsock2.h>
+# undef gethostname
+# if __i386__
+# define gethostname rpl_gethostname
+# endif
#elif @UNISTD_H_HAVE_WINSOCK2_H@
# undef gethostname
# define gethostname
gethostname_used_without_requesting_gnulib_module_gethostname
- [Guile-commits] branch wip-mingw created (now be9b668), Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 10/15: DRAFT Support for x86_64-w64-mingw32., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 15/15: DEBUG guile.cmd: Some Wine help., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 05/15: Compile fix for x86_64-MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 06/15: Add 'set-mode' procedure for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 11/15: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 08/15: Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 12/15: Define 'SIGHUP' for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 01/15: Document write-line., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 03/15: Fix 'gethostname' prototype for x86_64-MinGW.,
Jan Nieuwenhuizen <=
- [Guile-commits] 04/15: Clear errno before CreateProcess for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 07/15: Add `scm_sigaction_for_thread' stub for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 09/15: Install 'mingw_take_signal' on MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 13/15: Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 14/15: guix: Add guile-patched, guile-mingw., Jan Nieuwenhuizen, 2021/04/12