Please sign in to comment.
lib/libc/minimal: Refined handle duplicate time definitions
Follow the approach of newlib to use a file sys/_types.h to specify the underlying type for POSIX/libc types that must be provided in multiple headers. The identifier for this type is in the reserved namespace. Use this type rather than a specific standard type in all headers that need to provide the type under its public name. Remove the inclusion of <sys/types.h> from headers that should not bring in all symbols present in that header, replacing it with the standard boilerplate to expose the specific symbols that are required. Signed-off-by: Peter A. Bigot <firstname.lastname@example.org>
- Loading branch information...
Showing with 46 additions and 6 deletions.
|@@ -0,0 +1,18 @@|
|* Copyright (c) 2019 Peter Bigot Consulting, LLC|
|* SPDX-License-Identifier: Apache-2.0|
|/* Common header used to define underlying types for typedefs that|
|* must appear in multiple headers independently.|
|typedef int64_t _TIME_T_;|
|typedef int32_t _SUSECONDS_T_;|
|#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_XTYPES_H_ */|