From 26722dc8571d6868aa6c3c2d6b5f03e93f6e5ac4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 2 Jan 2019 16:01:05 -0800 Subject: [PATCH] Add typedefs for suseconds_t and nlink_t. --- basics/include/sys/types.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/basics/include/sys/types.h b/basics/include/sys/types.h index 0241800..0d03c5c 100644 --- a/basics/include/sys/types.h +++ b/basics/include/sys/types.h @@ -14,4 +14,11 @@ typedef long long off_t; /* This is defined to be the same size as size_t. */ typedef long ssize_t; +/* Define this to be 64-bit as its main use is in struct timeval where the + extra space would otherwise be padding. */ +typedef long long suseconds_t; + +/* Follow x32 in defining this as 64-bit. */ +typedef long long nlink_t; + #endif