From bbf30330b4cf459de3a7de0d3af77006e91d1f55 Mon Sep 17 00:00:00 2001 From: Jean-Marc Le Roux Date: Wed, 8 Aug 2018 08:02:43 -0700 Subject: [PATCH] Fix the build failure with OS_ANDROID (#4232) Summary: sysmacros.h should be included in OS_ANDROID build as well otherwise the compile would complain: error: use of undeclared identifier 'major'. Fixes https://github.com/facebook/rocksdb/issues/4231 Pull Request resolved: https://github.com/facebook/rocksdb/pull/4232 Differential Revision: D9217350 Pulled By: maysamyabandeh fbshipit-source-id: 21f4b62dbbda3163120ac0b38b95d95d35d67dce --- env/env_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/env_posix.cc b/env/env_posix.cc index cc377f161..ae8088f65 100644 --- a/env/env_posix.cc +++ b/env/env_posix.cc @@ -20,7 +20,7 @@ #include #include #include -#if defined(OS_LINUX) || defined(OS_SOLARIS) +#if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID) #include #include #include