summaryrefslogtreecommitdiffhomepage
path: root/test/util/save_util_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/save_util_linux.cc')
-rw-r--r--test/util/save_util_linux.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/util/save_util_linux.cc b/test/util/save_util_linux.cc
index cd56118c0..d0aea8e6a 100644
--- a/test/util/save_util_linux.cc
+++ b/test/util/save_util_linux.cc
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#ifdef __linux__
+
#include <errno.h>
#include <sys/syscall.h>
#include <unistd.h>
@@ -43,3 +45,5 @@ void MaybeSave() {
} // namespace testing
} // namespace gvisor
+
+#endif