Skip to content

Commit 9442bc5

Browse files
committed
Allow use of strptime
1 parent 1a92799 commit 9442bc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/libzsync/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ target_link_libraries(libzsync PRIVATE zsync2_libz PUBLIC librcksum)
1919
# declare includes
2020
target_include_directories(libzsync PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
2121

22+
# needed for strptime to work
23+
target_compile_definitions(libzsync PRIVATE _GNU_SOURCE _XOPEN_SOURCE)
24+
2225
# add tests
2326
add_executable(sha1test sha1.c sha1test.c)
2427
add_test(sha1test sha1test)

0 commit comments

Comments
 (0)