aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorme0wmix <me0wmix@cryptoanarchy.localnet>2016-01-21 11:18:26 -0700
committerme0wmix <me0wmix@cryptoanarchy.localnet>2016-01-21 11:18:26 -0700
commit28f95eb001a47056287c8adf07c2638746ad8e48 (patch)
tree1ca085f0499b8e43d190b62dc02b15a5f1f0b2c5 /contrib
parentMerge pull request #616 (diff)
downloadmonero-28f95eb001a47056287c8adf07c2638746ad8e48.tar.xz
OpenBSD support for Monero.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/console_handler.h7
1 files changed, 7 insertions, 0 deletions
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 <mutex>
#include <thread>
#include <iostream>
+#ifdef __OpenBSD__
+#include <stdio.h>
+#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))
{