improve error handling of ttyname_r and isatty
[musl] / src / fcntl / fcntl.c
index 2c4f535..d3bff5c 100644 (file)
@@ -3,7 +3,6 @@
 #include <stdarg.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int fcntl(int fd, int cmd, ...)
 {
@@ -39,7 +38,6 @@ int fcntl(int fd, int cmd, ...)
        }
        switch (cmd) {
        case F_SETLK:
-       case F_SETLKW:
        case F_GETLK:
        case F_GETOWN_EX:
        case F_SETOWN_EX: