oglcts-runner: Include cstdlib in glcTestRunnerMain
authorRobert Morell <rmorell@nvidia.com>
Thu, 10 Dec 2020 02:08:40 +0000 (18:08 -0800)
committerLiam Middlebrook <lmiddlebrook@nvidia.com>
Thu, 10 Dec 2020 08:50:14 +0000 (03:50 -0500)
To pick up the definitions of EXIT_SUCCESS/EXIT_FAILURE.

Fixes these errors building on FreeBSD 10.4 with llvm60:
/root/nvt/tests/buildvulkancts/vk-gl-cts/external/openglcts/modules/runner/glcTestRunnerMain.cpp:115:19: error: use of undeclared identifier 'EXIT_SUCCESS'
        int exitStatus = EXIT_SUCCESS;
                         ^
/root/nvt/tests/buildvulkancts/vk-gl-cts/external/openglcts/modules/runner/glcTestRunnerMain.cpp:136:19: error: use of undeclared identifier 'EXIT_FAILURE'
                                        exitStatus = EXIT_FAILURE;
                                                     ^

Components: OpenGL

VK-GL-CTS issue: 2696

Change-Id: I918f3de12dde8871df8905f5870c3d6c73ae8048

external/openglcts/modules/runner/glcTestRunnerMain.cpp

index 8a75b23..8bc8c0d 100644 (file)
@@ -29,6 +29,7 @@
 #include "tcuResource.hpp"
 
 #include <cstdio>
+#include <cstdlib>
 
 // See tcuMain.cpp
 tcu::Platform* createPlatform(void);