musl add bits/types.h file for compatible

This commit is contained in:
aliriza committed 2024-09-01 15:29:00 +03:00
1 parent e754be28d3
commit 8f6bcfe9d1
2 files changed
+40 -1

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
#ifndef __BITS_TYPES_H
#define __BITS_TYPES_H
#include <sys/cdefs.h>
/* Convenience types. */
typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;
/* Fixed-size types, underlying types depend on word size and compiler. */
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef unsigned long __ssize_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
#if __WORDSIZE == 64
typedef signed long int __int64_t;
typedef unsigned long int __uint64_t;
#else
__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;
#endif
#define __off64_t off_t
#define __loff_t off_t
typedef char *__caddr_t;
#define __locale_t locale_t
#define __gid_t gid_t
#define __uid_t uid_t
#endif
+4 -1
View File
@@ -8,10 +8,12 @@ email=' aliriza.keskin@pardus.org.tr'
maintainer=' aliriza' maintainer=' aliriza'
license=('MIT') license=('MIT')
source=("https://musl.libc.org/releases/musl-$version.tar.gz" source=("https://musl.libc.org/releases/musl-$version.tar.gz"
'ldconfig') 'ldconfig'
'bits_types.h')
depends=( ) depends=( )
makedepends=( ) makedepends=( )
md5sums=('a507ae4f7f20bcfe566d8eb65c1af73e' md5sums=('a507ae4f7f20bcfe566d8eb65c1af73e'
'SKIP'
'SKIP') 'SKIP')
arch=('x86_64') arch=('x86_64')
group=(dev.libs) group=(dev.libs)
@@ -58,5 +60,6 @@ package(){
echo '#define __END_DECLS }' echo '#define __END_DECLS }'
echo '#endif' echo '#endif'
} > "$DESTDIR"/usr/include/musl/sys/cdefs.h } > "$DESTDIR"/usr/include/musl/sys/cdefs.h
install ../bits_types.h "$DESTDIR"/usr/include/musl/bits/types.h
} }