]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/test-sizeof: Include sys/timex.h for struct timex
authorKhem Raj <raj.khem@gmail.com>
Wed, 2 Aug 2023 19:14:56 +0000 (12:14 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 2 Aug 2023 21:45:27 +0000 (14:45 -0700)
Fixes

../git/src/test/test-sizeof.c:64:41: error: incomplete definition of type 'struct timex'
   64 |         check(typeof(((struct timex *)0)->freq), SIZEOF_TIMEX_MEMBER);
      |                      ~~~~~~~~~~~~~~~~~~~^

src/test/test-sizeof.c

index 18378b0450083dee6ab1597459640efd0daeeab8..ea0c58770ec25ac7fa350486ce14fc3e09b3e8ec 100644 (file)
@@ -5,6 +5,7 @@
 #include <string.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/timex.h>
 #include <sys/types.h>
 
 #define __STDC_WANT_IEC_60559_TYPES_EXT__