Skip to content

Commit

Permalink
ci: fix gh action error
Browse files Browse the repository at this point in the history
  • Loading branch information
molingyu committed Sep 7, 2024
1 parent 0b55648 commit 0616b9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ set_target_properties(test PROPERTIES
C_EXTENSIONS NO
)

if (UNIX)
target_link_libraries(test rt)
endif ()

# Special access to i18n-format internals for testing
target_include_directories(test PRIVATE ${CMAKE_SOURCE_DIR}/src)

Expand Down
1 change: 1 addition & 0 deletions test/unit_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@

#pragma once

#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <time.h>

Expand Down

0 comments on commit 0616b9b

Please sign in to comment.