aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-03-12 09:03:41 -0400
committerJack Lloyd <[email protected]>2020-03-14 14:33:03 -0400
commit067be47bce177a4ff15a7d09d2c5c56f1708dd24 (patch)
tree1cb08de156d28bc6b2bd57d9a60b847c135bffca /src/lib/utils
parent25bcbfe74a8251979b2078b9c071f76a07c66699 (diff)
Add a 'none' OS target for bare metal builds.
GH #2303
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/os_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index b37c06d6e..b0b59fc7c 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -99,7 +99,7 @@ uint32_t OS::get_process_id()
return ::getpid();
#elif defined(BOTAN_TARGET_OS_HAS_WIN32)
return ::GetCurrentProcessId();
-#elif defined(BOTAN_TARGET_OS_IS_INCLUDEOS) || defined(BOTAN_TARGET_OS_IS_LLVM)
+#elif defined(BOTAN_TARGET_OS_IS_INCLUDEOS) || defined(BOTAN_TARGET_OS_IS_LLVM) || defined(BOTAN_TARGET_OS_IS_NONE)
return 0; // truly no meaningful value
#else
#error "Missing get_process_id"