diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-03-13 09:26:42 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-03-13 09:26:42 +0000 |
commit | 502215cf02f913469e562c9d13f3a9c5a465413d (patch) | |
tree | 2eed9ade823231397fd0985f013d7fe1afab05cc /libsylph/mh.c | |
parent | dfad6357498ce8f7c0f051027dec550449c5b143 (diff) |
win32: use CreateHardLink().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2117 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/mh.c')
-rw-r--r-- | libsylph/mh.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libsylph/mh.c b/libsylph/mh.c index 386d7557..4b68cd3a 100644 --- a/libsylph/mh.c +++ b/libsylph/mh.c @@ -459,18 +459,14 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list, if (first_ == 0 || first_ > dest->last_num + 1) first_ = dest->last_num + 1; -#ifdef G_OS_UNIX - if (link(fileinfo->file, destfile) < 0) { -#endif + if (g_link(fileinfo->file, destfile) < 0) { if (copy_file(fileinfo->file, destfile, TRUE) < 0) { g_warning(_("can't copy message %s to %s\n"), fileinfo->file, destfile); g_free(destfile); return -1; } -#ifdef G_OS_UNIX } -#endif g_free(destfile); dest->last_num++; |