OSDN Git Service

Fix lockf for LP32.
authorElliott Hughes <enh@google.com>
Tue, 26 Jan 2016 22:32:55 +0000 (14:32 -0800)
committerElliott Hughes <enh@google.com>
Tue, 26 Jan 2016 22:32:55 +0000 (14:32 -0800)
Bug: http://b/13077650
Change-Id: Ibbe2d907d23791c908475e0875a5c745ac948813

libc/bionic/lockf.cpp

index 1510b3d..804ad68 100644 (file)
@@ -34,7 +34,7 @@
 
 int lockf64(int fd, int cmd, off64_t length) {
   // Translate POSIX lockf into fcntl.
-  struct flock fl;
+  struct flock64 fl;
   memset(&fl, 0, sizeof(fl));
   fl.l_whence = SEEK_CUR;
   fl.l_start = 0;