Remove typedef and include unistd.h
Some checks failed
CI / build-and-analyze (push) Failing after 1m16s
Some checks failed
CI / build-and-analyze (push) Failing after 1m16s
This commit is contained in:
15
posix/Dir.c
15
posix/Dir.c
@@ -1,19 +1,20 @@
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#include "../CgeFs.h"
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
typedef struct CgeFsDir {
|
||||
struct CgeFsDir {
|
||||
DIR *dir;
|
||||
char path[PATH_MAX];
|
||||
size_t size;
|
||||
} CgeFsDir;
|
||||
};
|
||||
|
||||
static int mapErrno(int value) {
|
||||
switch (value) {
|
||||
|
||||
Reference in New Issue
Block a user