mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-20 00:17:43 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fe0e90bc3 |
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
namespace fs
|
||||
{
|
||||
@@ -15,9 +16,10 @@ namespace fs
|
||||
char name[];
|
||||
|
||||
public:
|
||||
int namelen() const
|
||||
size_t
|
||||
namelen() const
|
||||
{
|
||||
return (reclen - offsetof(dirent64,name));
|
||||
return ::strlen(name);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user