forked from mirrors/tftp-hpa-google
Working on version 0.29.
Initial work for compiling on Win32/Cygwin. Posixly correctness.
This commit is contained in:
parent
f9e7950883
commit
98d7543721
10 changed files with 81 additions and 31 deletions
15
config.h
15
config.h
|
@ -89,11 +89,26 @@
|
|||
#include <grp.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
/* Test for EAGAIN/EWOULDBLOCK */
|
||||
#ifdef EAGAIN
|
||||
#if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN)
|
||||
#define E_WOULD_BLOCK(x) ((x) == EAGAIN || (x) == EWOULDBLOCK)
|
||||
#else
|
||||
#define E_WOULD_BLOCK(x) ((x) == EAGAIN)
|
||||
#endif
|
||||
#else
|
||||
#define E_WOULD_BLOCK(x) ((x) == EWOULDBLOCK)
|
||||
#endif
|
||||
|
||||
/* If we don't have intmax_t, try creating it */
|
||||
|
||||
#ifndef HAVE_INTMAX_T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue