Skip to content

Commit

Permalink
options/posix: revert useconds_t downsizing on 64-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Jan 3, 2024
1 parent b883896 commit 52590bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion options/posix/include/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ extern int optopt;
#endif /* !__MLIBC_ABI_ONLY */

// Non-POSIX functions supported by Linux.
typedef unsigned useconds_t;
#if UINTPTR_MAX == UINT64_MAX
typedef __mlibc_uint64 useconds_t;
#else
typedef __mlibc_uint32 useconds_t;
#endif

#ifndef __MLIBC_ABI_ONLY

Expand Down

0 comments on commit 52590bd

Please sign in to comment.