mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
include system sys/types header for all struct checks
fixes sockaddr_dl::sdl_index member check on FreeBSD Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fb084d665c
commit
b8ed1c21e2
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ endmacro()
|
|||
# a function to check for C struct member presence in header, if member is
|
||||
# found a definition is added
|
||||
function(KATIE_CHECK_STRUCT FORSTRUCT FORMEMBER FROMHEADER)
|
||||
check_struct_has_member("struct ${FORSTRUCT}" "${FORMEMBER}" "${FROMHEADER}" HAVE_${FORSTRUCT}_${FORMEMBER})
|
||||
check_struct_has_member("struct ${FORSTRUCT}" "${FORMEMBER}" "sys/types.h;${FROMHEADER}" HAVE_${FORSTRUCT}_${FORMEMBER})
|
||||
|
||||
if(HAVE_${FORSTRUCT}_${FORMEMBER})
|
||||
string(TOUPPER "${FORSTRUCT}_${FORMEMBER}" upperstructmember)
|
||||
|
|
Loading…
Add table
Reference in a new issue