* Defines for 64 bit fcntl locks.
*/
-#ifndef SMB_STRUCT_FLOCK
-# define SMB_STRUCT_FLOCK struct flock
-#endif
-
#ifndef SMB_F_SETLKW
# define SMB_F_SETLKW F_SETLKW
#endif
bool fcntl_getlock(int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
{
- SMB_STRUCT_FLOCK lock;
+ struct flock lock;
int ret;
DEBUG(8,("fcntl_getlock fd=%d offset=%.0f count=%.0f type=%d\n",
static bool do_file_lock(int fd, int waitsecs, int type)
{
- SMB_STRUCT_FLOCK lock;
+ struct flock lock;
int ret;
void (*oldsig_handler)(int);