Copy libc compat files rather than adding into the repository
- remove the CP_LIBC files from repo - move tests/memmem.c to tests/compat/
This commit is contained in:
@@ -156,7 +156,7 @@ if(NOT CMAKE_HOST_WIN32)
|
||||
if(HAVE_MEMMEM)
|
||||
add_executable(explicit_bzero explicit_bzero.c)
|
||||
else()
|
||||
add_executable(explicit_bzero explicit_bzero.c memmem.c)
|
||||
add_executable(explicit_bzero explicit_bzero.c compat/memmem.c)
|
||||
endif()
|
||||
target_link_libraries(explicit_bzero ${TESTS_LIBS})
|
||||
add_test(explicit_bzero explicit_bzero)
|
||||
|
@@ -163,7 +163,7 @@ TESTS += explicit_bzero
|
||||
check_PROGRAMS += explicit_bzero
|
||||
explicit_bzero_SOURCES = explicit_bzero.c
|
||||
if !HAVE_MEMMEM
|
||||
explicit_bzero_SOURCES += memmem.c
|
||||
explicit_bzero_SOURCES += compat/memmem.c
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user