mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 04:59:55 +00:00 
			
		
		
		
	 b2af4d9689
			
		
	
	b2af4d9689
	
	
	
		
			
			linux/lwip: Wrap some IO posix functions * to workaourd the FreeRTOS EINTR issue (when building without lwip) * to correctly choose the sub-system based on fd (when building with lwip) -- passing control to either linux/system or to lwip This commit also addapts tapio-if to provide DHCP client by default and configurable settings for static IP
		
			
				
	
	
		
			17 lines
		
	
	
		
			545 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			545 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
 | |
|  *
 | |
|  * SPDX-License-Identifier: Apache-2.0
 | |
|  */
 | |
| #pragma once
 | |
| #include "sdkconfig.h"
 | |
| 
 | |
| #ifdef LWIP_HDR_LINUX_SYS_SOCKETS_H
 | |
| // only if we prefer linux system sockets, include from system paths
 | |
| #include_next <fcntl.h>
 | |
| #elif CONFIG_IDF_TARGET_LINUX
 | |
| // need to declare, as on linux we bypass IDF vfs and wrap posix io functions
 | |
| extern int fcntl(int s, int cmd, ...);
 | |
| #endif
 | |
| // ignore otherwise (typically included from lwipopts.h) since lwip provides all necessary definitions
 |