aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/utils/os_utils.cpp2
-rw-r--r--src/lib/utils/os_utils.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index 233a3991c..4dac4f9af 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -320,7 +320,7 @@ int run_cpu_instruction_probe(std::function<int ()> probe_fn)
struct sigaction sigaction;
sigaction.sa_handler = botan_sigill_handler;
- ::sigemptyset(&sigaction.sa_mask);
+ sigemptyset(&sigaction.sa_mask);
sigaction.sa_flags = 0;
int rc = ::sigaction(SIGILL, &sigaction, &old_sigaction);
diff --git a/src/lib/utils/os_utils.h b/src/lib/utils/os_utils.h
index b06a72265..b74debc46 100644
--- a/src/lib/utils/os_utils.h
+++ b/src/lib/utils/os_utils.h
@@ -9,6 +9,7 @@
#define BOTAN_OS_UTILS_H__
#include <botan/types.h>
+#include <functional>
namespace Botan {