debian/rules: Use `git' potty wrapper.
[qmail] / lock_exnb.c
CommitLineData
2117e02e
MW
1#include <sys/types.h>
2#include <sys/file.h>
3#include <fcntl.h>
4#include "hasflock.h"
5#include "lock.h"
6
7#ifdef HASFLOCK
8int lock_exnb(fd) int fd; { return flock(fd,LOCK_EX | LOCK_NB); }
9#else
10int lock_exnb(fd) int fd; { return lockf(fd,2,0); }
11#endif