machine/_types.h: __blkcnt_t should be signed

[1] states: "blkcnt_t and off_t shall be signed integer types."

This causes pacman to fail when the size requirement
of the net update operation is negative, instead it
calculated a huge positive number.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
This commit is contained in:
Ray Donnelly 2016-07-14 12:40:47 +01:00 committed by Corinna Vinschen
parent 53a831f063
commit 82e06490de
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ typedef __uint32_t __ino32_t;
#endif #endif
#define __machine_blkcnt_t_defined #define __machine_blkcnt_t_defined
typedef __uint64_t __blkcnt_t; typedef __int64_t __blkcnt_t;
#define __machine_blksize_t_defined #define __machine_blksize_t_defined
typedef __int32_t __blksize_t; typedef __int32_t __blksize_t;