From 949061d223673ad7b28833e222981858083f4886 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 27 Aug 2017 19:17:42 +0200 Subject: [PATCH] xmr: disable huge pages if not defined #19 --- crypto/xmr-rpc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/xmr-rpc.cpp b/crypto/xmr-rpc.cpp index e50b28a..82b7845 100644 --- a/crypto/xmr-rpc.cpp +++ b/crypto/xmr-rpc.cpp @@ -30,6 +30,10 @@ #define MADV_HUGEPAGE 0 #endif +#ifndef MADV_HUGEPAGE +#define MADV_HUGEPAGE 0 +#endif + #ifndef PRIu64 #define PRIu64 "I64u" #endif