mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
21 lines
434 B
CMake
21 lines
434 B
CMake
![]() |
#
|
||
|
# Check for struct packing features
|
||
|
# This feature reworked from m4/reorganization/code_checks/compiler_attribs.m4
|
||
|
#
|
||
|
|
||
|
GET_FILENAME_COMPONENT(_selfdir_CheckFTS
|
||
|
"${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||
|
|
||
|
# Check if __attribute__((packed)) is available
|
||
|
check_c_source_compiles(
|
||
|
"
|
||
|
#include <fts.h>
|
||
|
|
||
|
int main(void) {
|
||
|
fts_open((void *)0, FTS_PHYSICAL, (void *)0);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
"
|
||
|
HAVE_SYSTEM_LFS_FTS )
|