forked from osmocom/wireshark
Cmake: Make it possible to check on HAVE_STRUCT_STAT_ST_BLKSIZE.
Change-Id: Id84adc85c1fbdef8e39240f55128cdec4ee9ca2f Reviewed-on: https://code.wireshark.org/review/31324 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
fea16b4aee
commit
101fed9420
|
@ -133,6 +133,7 @@ endif()
|
|||
include(CheckStructHasMember)
|
||||
check_struct_has_member("struct sockaddr" sa_len sys/socket.h HAVE_STRUCT_SOCKADDR_SA_LEN)
|
||||
check_struct_has_member("struct stat" st_flags sys/stat.h HAVE_STRUCT_STAT_ST_FLAGS)
|
||||
check_struct_has_member("struct stat" st_blksize sys/stat.h HAVE_STRUCT_STAT_ST_BLKSIZE)
|
||||
check_struct_has_member("struct stat" st_birthtime sys/stat.h HAVE_STRUCT_STAT_ST_BIRTHTIME)
|
||||
check_struct_has_member("struct stat" __st_birthtime sys/stat.h HAVE_STRUCT_STAT___ST_BIRTHTIME)
|
||||
check_struct_has_member("struct tm" tm_zone time.h HAVE_STRUCT_TM_TM_ZONE)
|
||||
|
|
|
@ -293,6 +293,9 @@
|
|||
/* Define if st_flags field exists in struct stat */
|
||||
#cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
|
||||
|
||||
/* Define if st_blksize field exists in struct stat */
|
||||
#cmakedefine HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
||||
|
||||
/* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
|
||||
#cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue