stdio致命错误:找不到“ _ctermid.h”文件

时间:2019-09-24 17:18:00

标签: c macos

include<stdio.h>

当我使用gcc进行编译时,结果就出来了:

/usr/local/include/stdio.h:205:10:致命错误:找不到'_ctermid.h'文件

今天出事了。它曾经在几天前符合要求

这是我的Mac上stdio.h的源代码

...............

/* Additional functionality provided by:
 * POSIX.1-1988
 */

#if __DARWIN_C_LEVEL >= 198808L
#define L_ctermid   1024    /* size for ctermid(); PATH_MAX */

__BEGIN_DECLS
#include <_ctermid.h>  // here is the stdio.h:205:10

#if defined(_DARWIN_UNLIMITED_STREAMS) || defined(_DARWIN_C_SOURCE)
FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_3_2, __DARWIN_EXTSN(fdopen));
#else /* !_DARWIN_UNLIMITED_STREAMS && !_DARWIN_C_SOURCE */
FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
#endif /* (DARWIN_UNLIMITED_STREAMS || _DARWIN_C_SOURCE) */
int  fileno(FILE *);
__END_DECLS
#endif /* __DARWIN_C_LEVEL >= 198808L */

..................

0 个答案:

没有答案