1 2 // Copyright 2018 Espressif Systems (Shanghai) PTE LTD 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 #ifndef _ESP_PLATFORM_ERRNO_H_ 16 #define _ESP_PLATFORM_ERRNO_H_ 17 18 #include_next "errno.h" 19 20 // 21 // Possibly define some missing errors 22 // 23 #ifndef ESHUTDOWN 24 #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ 25 #endif 26 27 #ifndef EAI_SOCKTYPE 28 #define EAI_SOCKTYPE 10 /* ai_socktype not supported */ 29 #endif 30 31 #ifndef EAI_AGAIN 32 #define EAI_AGAIN 2 /* temporary failure in name resolution */ 33 #endif 34 35 #ifndef EAI_BADFLAGS 36 #define EAI_BADFLAGS 3 /* invalid value for ai_flags */ 37 #endif 38 39 #endif // _ESP_PLATFORM_ERRNO_H_ 40