Changeset b343cd8 in git


Ignore:
Timestamp:
2013-09-09T11:35:36Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0
Children:
bfc37a3
Parents:
6d2d883
Message:

merge [1363] from trunk: cygwin hack unlink should be cygwin only

git-svn-id: svn://svn.lighttpd.net/xcache/branches/3.0@1364 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache/xc_lock.c

    re60ff6c rb343cd8  
    6767typedef struct {
    6868    HANDLE fd;
     69#ifdef __CYGWIN__
     70    /* store the path for unlink() later */
    6971    char *pathname;
     72#endif
    7073} xc_fcntl_lock_t;
    7174
     
    150153    if (fd != INVALID_HANDLE_VALUE) {
    151154
    152 #ifndef __CYGWIN__
    153         unlink(pathname);
    154 #endif
    155155        lck->fd = fd;
     156#ifdef __CYGWIN__
    156157        size = strlen(pathname) + 1;
    157158        lck->pathname = malloc(size);
    158159        memcpy(lck->pathname, pathname, size);
     160#else
     161        unlink(pathname);
     162#endif
    159163    }
    160164    else {
     
    175179#ifdef __CYGWIN__
    176180    unlink(lck->pathname);
    177 #endif
    178181    free(lck->pathname);
     182#endif
    179183}
    180184/* }}} */
Note: See TracChangeset for help on using the changeset viewer.