mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 09:45:06 -04:00
OpenBSD support for Monero.
This commit is contained in:
parent
e75cfe088f
commit
28f95eb001
10 changed files with 41 additions and 19 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue