diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 79d10e6042..066cf4c223 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -412,6 +412,8 @@ long fpathconf(int fd, int name) switch (name) { case _PC_PATH_MAX: return PATH_MAX; + case _PC_VDISABLE: + return _POSIX_VDISABLE; } ASSERT_NOT_REACHED(); diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index c7999b335c..d9f8d590b3 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -117,7 +117,8 @@ int umount(const char* mountpoint); enum { _PC_NAME_MAX, _PC_PATH_MAX, - _PC_PIPE_BUF + _PC_PIPE_BUF, + _PC_VDISABLE }; #define HOST_NAME_MAX 64 @@ -132,5 +133,6 @@ enum { * range of values), but we do have process priorities. */ #define _POSIX_PRIORITY_SCHEDULING +#define _POSIX_VDISABLE '\0' __END_DECLS