aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
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))
{