Просмотр исходного кода

Fix a compile warning due to missing include (#2293)

Compilation in strict mode fails with
```
wasm_micro_runtime/core/shared/platform/android/platform_init.c:122:30:
  error: declaration of 'struct epoll_event` will not be visible outside of this
  function [-Werror,-Wvisibility]

  epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout,
                               ^
1 error generated.
```

Co-authored-by: Misha Gridnev <gridman@google.com>
Misha Gridnev 2 лет назад
Родитель
Сommit
1456512754
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      core/shared/platform/android/platform_internal.h

+ 1 - 0
core/shared/platform/android/platform_internal.h

@@ -27,6 +27,7 @@
 #include <sched.h>
 #include <errno.h>
 #include <netinet/in.h>
+#include <sys/epoll.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>