diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 6f48ee7b72f..28a66d02b2d 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -286,15 +286,15 @@ __BEGIN_DECLS int open(const char *, int, ...); int creat(const char *, mode_t); int fcntl(int, int, ...); +#if __BSD_VISIBLE +int flock(int, int); +#endif #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 int openat(int, const char *, int, ...); #endif #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 int posix_fallocate(int, off_t, off_t); #endif -#if __BSD_VISIBLE -int flock(int, int); -#endif __END_DECLS #endif