[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch to build guile 1.5.2 on cygwin
From: |
Gerrit P. Haase |
Subject: |
patch to build guile 1.5.2 on cygwin |
Date: |
Mon, 17 Sep 2001 13:14:00 +0200 |
Hi,
i finally get it managed to build guile with/on cygwin.
This patch was needed because of problems with winsock
header which does not work with cygwin.
Gerrit
--
=^..^=
diff -ur guile-core-20010912-orig/libguile/guile.c
guile-core-20010912/libguile/guile.c
--- guile-core-20010912-orig/libguile/guile.c Tue Jun 26 19:53:09 2001
+++ guile-core-20010912/libguile/guile.c Sat Sep 15 18:41:37 2001
@@ -55,7 +55,7 @@
#include <libltdl/ltdl.h>
#endif
-#ifdef HAVE_WINSOCK2_H
+#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
#include <winsock2.h>
#endif
diff -ur guile-core-20010912-orig/libguile/iselect.h
guile-core-20010912/libguile/iselect.h
--- guile-core-20010912-orig/libguile/iselect.h Fri Jul 20 01:00:07 2001
+++ guile-core-20010912/libguile/iselect.h Sat Sep 15 18:41:35 2001
@@ -67,7 +67,7 @@
#include <sys/select.h>
#endif
-#ifdef HAVE_WINSOCK2_H
+#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
#include <winsock2.h>
#endif
diff -ur guile-core-20010912-orig/libguile/net_db.c
guile-core-20010912/libguile/net_db.c
--- guile-core-20010912-orig/libguile/net_db.c Mon Jul 9 16:36:09 2001
+++ guile-core-20010912/libguile/net_db.c Sat Sep 15 18:41:35 2001
@@ -65,7 +65,7 @@
#include <sys/types.h>
-#ifdef HAVE_WINSOCK2_H
+#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
#include <winsock2.h>
#else
#include <sys/socket.h>
@@ -74,7 +74,7 @@
#include <arpa/inet.h>
#endif
-#if !defined (HAVE_H_ERRNO) && !defined (__MINGW32__)
+#if !defined(HAVE_H_ERRNO) && !defined(__MINGW32__) && !defined(__CYGWIN__)
/* h_errno not found in netdb.h, maybe this will help. */
extern int h_errno;
#endif
diff -ur guile-core-20010912-orig/libguile/posix.c
guile-core-20010912/libguile/posix.c
--- guile-core-20010912-orig/libguile/posix.c Mon Jul 9 16:36:09 2001
+++ guile-core-20010912/libguile/posix.c Sat Sep 15 18:41:36 2001
@@ -95,7 +95,7 @@
#ifdef HAVE_IO_H
#include <io.h>
#endif
-#ifdef HAVE_WINSOCK2_H
+#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
#include <winsock2.h>
#endif
diff -ur guile-core-20010912-orig/libguile/socket.c
guile-core-20010912/libguile/socket.c
--- guile-core-20010912-orig/libguile/socket.c Mon Jul 9 16:36:09 2001
+++ guile-core-20010912/libguile/socket.c Sat Sep 15 18:41:36 2001
@@ -61,7 +61,7 @@
#include <unistd.h>
#endif
#include <sys/types.h>
-#ifdef HAVE_WINSOCK2_H
+#if defined(HAVE_WINSOCK2_H) && !defined(__CYGWIN__)
#include <winsock2.h>
#else
#include <sys/socket.h>
- patch to build guile 1.5.2 on cygwin,
Gerrit P. Haase <=