解决warning: implicit declaration of function 'wait'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36409988/article/details/83241080

头部加入wait的头文件

#include <sys/types.h>  
#include <sys/wait.h>

即可

猜你喜欢

转载自blog.csdn.net/qq_36409988/article/details/83241080