os.notify: fix sizeof(C.epoll_event) == 12 with tcc (was 16, while with gcc/clang it is 12)

This commit is contained in:
Delyan Angelov 2022-09-29 13:20:32 +03:00
parent 3b420a8d7f
commit 6fcab013eb
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 13 additions and 1 deletions

View file

@ -28,7 +28,13 @@
*/
#include <errno.h>
// tcc needs the pragmas, because it does not support yet
// the __EPOLL_PACKED macro, defined to be __attribute__ ((__packed__))
#pragma pack(push, 1)
#include <sys/epoll.h>
#pragma pack(pop)
#include <unistd.h>
#include "picoev.h"