Explorar el Código

fix warning of posix_signal

Meco Man hace 4 años
padre
commit
0e0e2a0f95
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      components/libc/signal/posix_signal.c

+ 2 - 1
components/libc/signal/posix_signal.c

@@ -10,7 +10,8 @@
 #include <rthw.h>
 #include <rtthread.h>
 
-#include <time.h>
+#include <sys/time.h>
+#include <sys/errno.h>
 
 #include "posix_signal.h"
 #define sig_valid(sig_no)   (sig_no >= 0 && sig_no < RT_SIG_MAX)