1 /* 2 * Copyright (c) 2006-2018, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2013-12-23 Bernard Add the checking for ESHUTDOWN 9 */ 10 11 #ifndef __POSIX_TYPES_H__ 12 #define __POSIX_TYPES_H__ 13 14 #include <rtthread.h> 15 16 #include <stddef.h> 17 #include <stdarg.h> 18 #include <string.h> 19 20 #include <sys/types.h> 21 #include <sys/time.h> 22 23 /* errno for Keil MDK */ 24 #if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) 25 #include <sys/errno.h> 26 #include <sys/unistd.h> 27 #else 28 #include <unistd.h> 29 #include <errno.h> 30 #include <fcntl.h> 31 #endif 32 33 #endif 34 35