From 0598a20cce8e66355643a2fef13afb7867852ed9 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Wed, 25 Aug 2021 12:06:08 +0100 Subject: [PATCH] Fix for OpenBSD - wordexp.h not available. --- tiny_gltf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index c5fa225..185bb0d 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1605,7 +1605,7 @@ class TinyGLTF { #endif -#elif !defined(__ANDROID__) +#elif !defined(__ANDROID__) && !defined(__OpenBSD__) #include #endif @@ -2629,7 +2629,7 @@ std::string ExpandFilePath(const std::string &filepath, void *) { #else #if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) || \ - defined(__ANDROID__) || defined(__EMSCRIPTEN__) + defined(__ANDROID__) || defined(__EMSCRIPTEN__) || defined(__OpenBSD__) // no expansion std::string s = filepath; #else