summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-08 21:02:14 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-08 21:02:14 +0100
commit17b9d3a055ca896ab78346ecdf460591596db52a (patch)
tree9cfcd3c69c300e03fe92aa15ffe8cb7fdaed0af2 /sysdeps
parent177e3fb1a2746f0a36e36a5f3923bba4b55bb932 (diff)
Fix build
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/Makefile4
-rw-r--r--sysdeps/mach/hurd/f_setlk.h1
-rw-r--r--sysdeps/mach/hurd/fcntl.c6
3 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile
index fe028316ae..405da67db6 100644
--- a/sysdeps/mach/hurd/Makefile
+++ b/sysdeps/mach/hurd/Makefile
@@ -191,6 +191,10 @@ ifeq (hurd, $(subdir))
sysdep_routines += cthreads
endif
+ifeq (io, $(subdir))
+sysdep_routines += f_setlk
+endif
+
ifeq ($(subdir),sunrpc)
sysdep_headers += nfs/nfs.h
endif
diff --git a/sysdeps/mach/hurd/f_setlk.h b/sysdeps/mach/hurd/f_setlk.h
index a9d09fd90a..16c7a8ca8d 100644
--- a/sysdeps/mach/hurd/f_setlk.h
+++ b/sysdeps/mach/hurd/f_setlk.h
@@ -19,4 +19,5 @@
#define _F_SETLK_H 1
extern int __f_setlk (int fd, int type, int whence, __off64_t start, __off64_t len, int wait);
+
#endif /* f_setlk.h */
diff --git a/sysdeps/mach/hurd/fcntl.c b/sysdeps/mach/hurd/fcntl.c
index a7ef21be1c..bda478b702 100644
--- a/sysdeps/mach/hurd/fcntl.c
+++ b/sysdeps/mach/hurd/fcntl.c
@@ -142,7 +142,7 @@ __libc_fcntl (int fd, int cmd, ...)
/* FALLTHROUGH */
case F_SETLK:
return __f_setlk (fd, fl->l_type, fl->l_whence,
- fl->l_start, fl->l_end, wait);
+ fl->l_start, fl->l_len, wait);
default:
errno = EINVAL;
return -1;
@@ -153,7 +153,7 @@ __libc_fcntl (int fd, int cmd, ...)
case F_SETLK64:
case F_SETLKW64:
{
- struct flock64 *fl64 = va_arg (ap, struct flock64 *);
+ struct flock64 *fl = va_arg (ap, struct flock64 *);
int wait = 0;
va_end (ap);
switch (cmd)
@@ -166,7 +166,7 @@ __libc_fcntl (int fd, int cmd, ...)
/* FALLTHROUGH */
case F_SETLKW64:
return __f_setlk (fd, fl->l_type, fl->l_whence,
- fl->l_start, fl->l_end, wait);
+ fl->l_start, fl->l_len, wait);
default:
errno = EINVAL;
return -1;