diff --git a/kernel/src/sys/stat.cpp b/kernel/src/sys/stat.cpp index 66ab8ca1..abe517bf 100644 --- a/kernel/src/sys/stat.cpp +++ b/kernel/src/sys/stat.cpp @@ -14,6 +14,7 @@ struct stat // FIXME: This struct is quite stubbed out. ino_t st_ino; mode_t st_mode; off_t st_size; + int st_dev; // FIXME: Implement this. }; void do_stat(Context* context, VFS::Node* node, struct stat* buf) diff --git a/libs/libc/include/sys/stat.h b/libs/libc/include/sys/stat.h index 18d1ca47..b92d6d54 100644 --- a/libs/libc/include/sys/stat.h +++ b/libs/libc/include/sys/stat.h @@ -9,6 +9,7 @@ struct stat // FIXME: This struct is quite stubbed out. ino_t st_ino; mode_t st_mode; off_t st_size; + int st_dev; // Not implemented. }; #define S_ISDIR(mode) (((mode)&0xf) == __VFS_DIRECTORY)