mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
LFS nits
This commit is contained in:
1 parent
f62f3545b4
commit
81f6acbce7
19 files changed
+258
-128
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#if MG_ENABLE_LFS
|
||||
#include <fcntl.h>
|
||||
#include <littlefs/lfs.h>
|
||||
|
||||
#ifndef DT_DIR
|
||||
#define DT_DIR 4
|
||||
#endif
|
||||
#ifndef DT_REG
|
||||
#define DT_REG 8
|
||||
#endif
|
||||
|
||||
struct dirent {
|
||||
char d_name[LFS_NAME_MAX + 1];
|
||||
unsigned char d_type;
|
||||
};
|
||||
|
||||
typedef struct mg_lfs_fd DIR;
|
||||
#endif
|
||||
Reference in new issue
Block a user