diff options
Diffstat (limited to 'lib-src/movemail.c')
| -rw-r--r-- | lib-src/movemail.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index cd329a110a8..264b3d292c6 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -96,13 +96,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 96 | #include <fcntl.h> | 96 | #include <fcntl.h> |
| 97 | #endif /* WINDOWSNT */ | 97 | #endif /* WINDOWSNT */ |
| 98 | 98 | ||
| 99 | #ifndef F_OK | ||
| 100 | #define F_OK 0 | ||
| 101 | #define X_OK 1 | ||
| 102 | #define W_OK 2 | ||
| 103 | #define R_OK 4 | ||
| 104 | #endif | ||
| 105 | |||
| 106 | #ifdef WINDOWSNT | 99 | #ifdef WINDOWSNT |
| 107 | #include <sys/locking.h> | 100 | #include <sys/locking.h> |
| 108 | #endif | 101 | #endif |
| @@ -335,11 +328,8 @@ main (int argc, char **argv) | |||
| 335 | 328 | ||
| 336 | tem = link (tempname, lockname); | 329 | tem = link (tempname, lockname); |
| 337 | 330 | ||
| 338 | #ifdef EPERM | 331 | if (tem < 0 && errno != EEXIST) |
| 339 | if (tem < 0 && errno == EPERM) | 332 | pfatal_with_name (lockname); |
| 340 | fatal ("Unable to create hard link between %s and %s", | ||
| 341 | tempname, lockname); | ||
| 342 | #endif | ||
| 343 | 333 | ||
| 344 | unlink (tempname); | 334 | unlink (tempname); |
| 345 | if (tem >= 0) | 335 | if (tem >= 0) |