Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 12 Jan 2018 17:07:05 +0000
From: Rostislav Skudnov <rostislav@...era.com>
To: <musl@...ts.openwall.com>
Subject: [PATCH] Add __intNN_t type definitions

These types are defined in glibc headers and are used by some programs,
e. g. xfsprogs before version 4.13.0.
---
 include/sys/types.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/sys/types.h b/include/sys/types.h
index 75e489c..b02208d 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -56,6 +56,15 @@ extern "C" {
 
 #include <bits/alltypes.h>
 
+typedef signed char __int8_t;
+typedef unsigned char __uint8_t;
+typedef short __int16_t;
+typedef unsigned short __uint16_t;
+typedef int __int32_t;
+typedef unsigned int __uint32_t;
+typedef off_t __int64_t;
+typedef ino_t __uint64_t;
+
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef unsigned char u_int8_t;
 typedef unsigned short u_int16_t;
-- 
2.1.4

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.