From 28f95eb001a47056287c8adf07c2638746ad8e48 Mon Sep 17 00:00:00 2001 From: me0wmix Date: Thu, 21 Jan 2016 11:18:26 -0700 Subject: OpenBSD support for Monero. --- contrib/epee/include/console_handler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'contrib/epee/include/console_handler.h') diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 685f0cc7b..5c63556ae 100644 --- a/contrib/epee/include/console_handler.h +++ b/contrib/epee/include/console_handler.h @@ -33,6 +33,9 @@ #include #include #include +#ifdef __OpenBSD__ +#include +#endif namespace epee { @@ -129,7 +132,11 @@ namespace epee bool wait_stdin_data() { #if !defined(WIN32) + #ifdef __OpenBSD__ + int stdin_fileno = fileno(stdin); + #else int stdin_fileno = ::fileno(stdin); + #endif while (m_run.load(std::memory_order_relaxed)) { -- cgit v1.2.3