glibc compatibility ;)

master
leitner 22 years ago
parent 4ef284ccd5
commit 29ae01d54f

@ -8,6 +8,7 @@
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif

@ -8,6 +8,7 @@
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif

@ -1,10 +1,11 @@
#define _GNU_SOURCE
#define extern #define extern
#include "io_internal.h" #include "io_internal.h"
#undef extern #undef extern
#ifdef HAVE_SIGIO #ifdef HAVE_SIGIO
#define _GNU_SOURCE
#include <sys/poll.h> #include <sys/poll.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
@ -13,8 +14,10 @@
#include <sys/event.h> #include <sys/event.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif
#include <unistd.h>
/* put d on internal data structure, return 1 on success, 0 on error */ /* put d on internal data structure, return 1 on success, 0 on error */
int io_fd(int64 d) { int io_fd(int64 d) {

@ -11,6 +11,7 @@
#include <sys/event.h> #include <sys/event.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif

@ -8,6 +8,7 @@
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif
#ifdef HAVE_SIGIO #ifdef HAVE_SIGIO

@ -8,6 +8,7 @@
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_EPOLL #ifdef HAVE_EPOLL
#include <inttypes.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#endif #endif
#ifdef HAVE_SIGIO #ifdef HAVE_SIGIO

Loading…
Cancel
Save