Skip to content
Browse files
Include <time.h> when calling time(2).
Rather than rely on "gtest/gtest.h" to include <time.h>, include it
explicitly, to ensure that time(2) is declared.
  • Loading branch information
sunfishcode authored and EdSchouten committed Apr 26, 2019
1 parent 8835639 commit 33041bfd4dee555afc89a1f5c2e55eb5f70f1e6c
Showing 1 changed file with 1 addition and 0 deletions.
@@ -3,6 +3,7 @@
// SPDX-License-Identifier: BSD-2-Clause

#include <unistd.h>
#include <time.h>

#include "gtest/gtest.h"

0 comments on commit 33041bf

Please sign in to comment.