diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-04-04 13:00:01 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-04-04 13:00:01 +0800 |
commit | 022f537c3e4dc72cc3e1659f11cd549f6db21e82 (patch) | |
tree | f74e82c539a55f1172f5b191d575395587d56fee /devel/gnome-vfs | |
parent | 1c9a30d367f9f8c4e642a4e55a5df1ae52bc39b9 (diff) | |
download | marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar.gz marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar.bz2 marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar.lz marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar.xz marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.tar.zst marcuscom-ports-022f537c3e4dc72cc3e1659f11cd549f6db21e82.zip |
Fix the sftp method.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2250 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r-- | devel/gnome-vfs/files/patch-modules_sftp-method.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/gnome-vfs/files/patch-modules_sftp-method.c b/devel/gnome-vfs/files/patch-modules_sftp-method.c new file mode 100644 index 000000000..be5e1448a --- /dev/null +++ b/devel/gnome-vfs/files/patch-modules_sftp-method.c @@ -0,0 +1,27 @@ +--- modules/sftp-method.c.orig Sat Apr 3 23:58:06 2004 ++++ modules/sftp-method.c Sun Apr 4 00:00:38 2004 +@@ -72,7 +72,7 @@ + size_t default_req_len = 32768; + guint max_req = 16; + +-#ifdef HAVE_GRANTPT ++#if defined(HAVE_GRANTPT) && !defined(__FreeBSD__) + /* We only use this on systems with unix98 ptys */ + #define USE_PTY 1 + #endif +@@ -174,6 +174,15 @@ + /* Inspired by atomicio() from OpenSSH */ + + typedef ssize_t (*read_write_fn) (int, void *, size_t); ++ ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__ \ ++ ({ long int __result; \ ++ do __result = (long int) (expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; })) ++#endif + + static gsize + atomic_io (read_write_fn f, gint fd, gpointer buffer_in, gsize size) |