[compilers] Fix c/c++ compilation warnings and errors

This commit is contained in:
tyx
2022-04-02 16:21:45 +08:00
committed by guo
parent e896021b56
commit b80f581562
11 changed files with 68 additions and 3 deletions

View File

@@ -14,6 +14,10 @@
#include <sys/types.h>
#include <sys/time.h>
#ifdef __cplusplus
extern "C" {
#endif
#define S_IFMT 00170000
#define S_IFSOCK 0140000
#define S_IFLNK 0120000
@@ -80,4 +84,8 @@ int mknod(const char *, mode_t, dev_t);
int stat(const char *, struct stat *);
mode_t umask(mode_t);
#ifdef __cplusplus
}
#endif
#endif