Browse Source

explicitly define extern globals

master
Felix von Leitner 17 years ago
parent
commit
ca610274e0
2 changed files with 19 additions and 1 deletions
  1. +18
    -0
      io/io_fd.c
  2. +1
    -1
      io_internal.h

+ 18
- 0
io/io_fd.c View File

@ -24,6 +24,24 @@
#include <sys/devpoll.h>
#endif
#ifdef __MINGW32__
extern HANDLE io_comport;
#endif
array io_fds;
uint64 io_wanted_fds;
array io_pollfds;
enum __io_waitmode io_waitmode;
#if defined(HAVE_KQUEUE) || defined(HAVE_EPOLL) || defined(HAVE_DEVPOLL)
int io_master;
#endif
#if defined(HAVE_SIGIO)
int io_signum;
sigset_t io_ss;
long alt_firstread;
long alt_firstwrite;
#endif
/* put d on internal data structure, return 1 on success, 0 on error */
int io_fd(int64 d) {
io_entry* e;


+ 1
- 1
io_internal.h View File

@ -41,7 +41,7 @@ extern array io_pollfds;
extern long first_readable;
extern long first_writeable;
extern enum {
extern enum __io_waitmode {
UNDECIDED,
POLL
#ifdef HAVE_KQUEUE


Loading…
Cancel
Save