From 3abad890ec56ae8a2edc5271dcab3550b8d4acb3 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 18 Sep 2013 19:49:17 +0200 Subject: [PATCH] Fix non-standard struct flock declaration. --- libc/include/fcntl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 7a3d7fdb..b5d42e99 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -48,7 +48,7 @@ __BEGIN_DECLS @include(pid_t.h) -struct _flock +struct flock { short l_type; /* Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. */ short l_whence; /* Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. */ @@ -57,8 +57,6 @@ struct _flock pid_t l_pid; /* Process ID of the process holding the lock; returned with F_GETLK. */ }; -typedef struct _flock flock; - int fcntl(int fd, int cmd, ...); int open(const char* path, int oflag, ...); #if defined(__SORTIX_SHOW_UNIMPLEMENTED)