unix: simplify uv/posix.h include logic
This commit includes uv/posix.h in one #elif instead of four. PR-URL: https://github.com/libuv/libuv/pull/2302 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
2169a53cd2
commit
693b534f2c
@ -49,8 +49,6 @@
|
|||||||
# include "uv/linux.h"
|
# include "uv/linux.h"
|
||||||
#elif defined (__MVS__)
|
#elif defined (__MVS__)
|
||||||
# include "uv/os390.h"
|
# include "uv/os390.h"
|
||||||
#elif defined(__PASE__)
|
|
||||||
# include "uv/posix.h"
|
|
||||||
#elif defined(_AIX)
|
#elif defined(_AIX)
|
||||||
# include "uv/aix.h"
|
# include "uv/aix.h"
|
||||||
#elif defined(__sun)
|
#elif defined(__sun)
|
||||||
@ -63,9 +61,10 @@
|
|||||||
defined(__OpenBSD__) || \
|
defined(__OpenBSD__) || \
|
||||||
defined(__NetBSD__)
|
defined(__NetBSD__)
|
||||||
# include "uv/bsd.h"
|
# include "uv/bsd.h"
|
||||||
#elif defined(__CYGWIN__) || defined(__MSYS__)
|
#elif defined(__PASE__) || \
|
||||||
# include "uv/posix.h"
|
defined(__CYGWIN__) || \
|
||||||
#elif defined(__GNU__)
|
defined(__MSYS__) || \
|
||||||
|
defined(__GNU__)
|
||||||
# include "uv/posix.h"
|
# include "uv/posix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user