diff --git a/headers/posix/dirent.h b/headers/posix/dirent.h index 9d8510eee3..ea8d941be8 100644 --- a/headers/posix/dirent.h +++ b/headers/posix/dirent.h @@ -41,7 +41,7 @@ int closedir(DIR* dir); void rewinddir(DIR* dir); void seekdir(DIR* dir, long int position); long int telldir(DIR* dir); -int dirfd(const DIR* dir); +int dirfd(DIR* dir); int alphasort(const struct dirent** entry1, const struct dirent** entry2); diff --git a/src/system/libroot/posix/dirent.c b/src/system/libroot/posix/dirent.c index f4c8104237..fef3e3b9b8 100644 --- a/src/system/libroot/posix/dirent.c +++ b/src/system/libroot/posix/dirent.c @@ -279,7 +279,7 @@ telldir(DIR* dir) int -dirfd(const DIR* dir) +dirfd(DIR* dir) { return dir->fd; }