mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
23 lines
294 B
C
23 lines
294 B
C
#pragma once
|
|
|
|
#if MG_ENABLE_LFS
|
|
#include <fcntl.h>
|
|
#include <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;
|
|
|
|
bool mg_lfs_init(size_t size);
|
|
#endif
|