在自己編譯的include目錄中,添加一個檔案unistd.h
内容:
#ifndef _UNISTD_H
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif /* _UNISTD_H */
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif /* _UNISTD_H */
#define _UNISTD_H
#include <io.h>
#include <process.h>
#endif /* _UNISTD_H */
兩個include是否必要不确定。
如果有其他需要定義的宏,可以直接在這裡處理。