]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fix cross compiling
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 Dec 2021 11:10:09 +0000 (20:10 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 Dec 2021 14:19:00 +0000 (14:19 +0000)
meson.build

index ff3e066e2cad93895a071d3c48ad22fb2c8b55eb..6eae80608ce1192d616672b64a479f5ee5b9b051 100644 (file)
@@ -468,7 +468,7 @@ conf.set('SIZEOF_DEV_T', cc.sizeof('dev_t', prefix : '#include <sys/types.h>'))
 conf.set('SIZEOF_INO_T', cc.sizeof('ino_t', prefix : '#include <sys/types.h>'))
 conf.set('SIZEOF_TIME_T', cc.sizeof('time_t', prefix : '#include <sys/time.h>'))
 conf.set('SIZEOF_RLIM_T', cc.sizeof('rlim_t', prefix : '#include <sys/resource.h>'))
-conf.set('SIZEOF_TIMEX_MEMBER', cc.sizeof('((struct timex *)0)->freq', prefix : '#include <sys/timex.h>'))
+conf.set('SIZEOF_TIMEX_MEMBER', cc.sizeof('typeof(((struct timex *)0)->freq)', prefix : '#include <sys/timex.h>'))
 
 decl_headers = '''
 #include <uchar.h>