Skip to content

Commit

Permalink
Workaround Issues Building Migcom on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousTommy committed Jan 22, 2024
1 parent 918b8fb commit bbbbaaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bsd/arm/_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
#ifndef DARLING_LINUX_MIGCOM
typedef long long __int64_t;
typedef unsigned long long __uint64_t;
#endif

typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
Expand Down Expand Up @@ -52,9 +54,14 @@ typedef int __darwin_ct_rune_t; /* ct_rune_t */
typedef union {
char __mbstate8[128];
long long _mbstateL; /* for alignment */
#ifndef DARLING_LINUX_MIGCOM
} __mbstate_t;

typedef __mbstate_t __darwin_mbstate_t; /* mbstate_t */
#else
// Redefinition conflict
} __darwin_mbstate_t;
#endif

#if defined(__PTRDIFF_TYPE__)
typedef __PTRDIFF_TYPE__ __darwin_ptrdiff_t; /* ptr1 - ptr2 */
Expand Down

0 comments on commit bbbbaaf

Please sign in to comment.