From 1d1969adcc90b6b5f7e9f39a7396c9a619057158 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 7 Sep 2018 10:26:18 +0200 Subject: [PATCH] unix: add support for GNU/Hurd PR-URL: https://github.com/libuv/libuv/pull/2008 Reviewed-By: Ben Noordhuis Bug-Debian: https://bugs.debian.org/881882 --- Makefile.am | 7 +++++++ configure.ac | 1 + include/uv/unix.h | 2 ++ 3 files changed, 10 insertions(+) diff --git a/Makefile.am b/Makefile.am index 23814254..92c63051 100644 --- a/Makefile.am +++ b/Makefile.am @@ -389,6 +389,13 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \ test_run_tests_LDFLAGS += -lutil endif +if HURD +uvinclude_HEADERS += include/uv/posix.h +libuv_la_SOURCES += src/unix/no-fsevents.c \ + src/unix/posix-hrtime.c \ + src/unix/posix-poll.c +endif + if LINUX uvinclude_HEADERS += include/uv/linux.h libuv_la_CFLAGS += -D_GNU_SOURCE diff --git a/configure.ac b/configure.ac index 85692a3f..901139e2 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,7 @@ AM_CONDITIONAL([CYGWIN], [AS_CASE([$host_os],[cygwin*], [true], [false]) AM_CONDITIONAL([DARWIN], [AS_CASE([$host_os],[darwin*], [true], [false])]) AM_CONDITIONAL([DRAGONFLY],[AS_CASE([$host_os],[dragonfly*], [true], [false])]) AM_CONDITIONAL([FREEBSD], [AS_CASE([$host_os],[*freebsd*], [true], [false])]) +AM_CONDITIONAL([HURD], [AS_CASE([$host_os],[gnu*], [true], [false])]) AM_CONDITIONAL([LINUX], [AS_CASE([$host_os],[linux*], [true], [false])]) AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false])]) AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])]) diff --git a/include/uv/unix.h b/include/uv/unix.h index 7208557b..9de9efec 100644 --- a/include/uv/unix.h +++ b/include/uv/unix.h @@ -64,6 +64,8 @@ # include "uv/bsd.h" #elif defined(__CYGWIN__) || defined(__MSYS__) # include "uv/posix.h" +#elif defined(__GNU__) +# include "uv/posix.h" #endif #ifndef NI_MAXHOST