]> granicus.if.org Git - strace/blobdiff - tests/stat.c
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / stat.c
index f64ff302514cfb29000f5a85f3d4836e988a8742..79e91757e252df7bcd7ae485b6022bf73614d5b6 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  */
 
 #include "tests.h"
-#include <sys/syscall.h>
+#include <asm/unistd.h>
 
 #ifdef __NR_stat
 
 # define TEST_SYSCALL_NR __NR_stat
 # define TEST_SYSCALL_STR "stat"
-# define SAMPLE_SIZE ((kernel_ulong_t) 43147718418)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 43147718418ULL)
 # include "lstatx.c"
 
 #else