File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
#include <signal.h>
23
23
#include <sys/ioctl.h>
24
24
#include <linux/sockios.h>
25
+ #include <linux/time64.h>
25
26
26
27
#include "vsock_test_zerocopy.h"
27
28
#include "timeout.h"
@@ -559,7 +560,7 @@ static time_t current_nsec(void)
559
560
exit (EXIT_FAILURE );
560
561
}
561
562
562
- return (ts .tv_sec * 1000000000ULL ) + ts .tv_nsec ;
563
+ return (ts .tv_sec * NSEC_PER_SEC ) + ts .tv_nsec ;
563
564
}
564
565
565
566
#define RCVTIMEO_TIMEOUT_SEC 1
@@ -599,7 +600,7 @@ static void test_seqpacket_timeout_client(const struct test_opts *opts)
599
600
}
600
601
601
602
read_overhead_ns = current_nsec () - read_enter_ns -
602
- 1000000000ULL * RCVTIMEO_TIMEOUT_SEC ;
603
+ NSEC_PER_SEC * RCVTIMEO_TIMEOUT_SEC ;
603
604
604
605
if (read_overhead_ns > READ_OVERHEAD_NSEC ) {
605
606
fprintf (stderr ,
You can’t perform that action at this time.
0 commit comments