Merge pull request #5092 from mysterywolf/removeselect
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
This commit is contained in:
commit
7b6aff0696
|
@ -12,7 +12,7 @@
|
|||
#include <dfs_posix.h>
|
||||
|
||||
#include <poll.h>
|
||||
#include <dfs_select.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#ifdef RT_USING_POSIX
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <lwp_syscall.h>
|
||||
|
||||
#include <poll.h>
|
||||
#include <dfs_select.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#if (defined(RT_USING_SAL) && defined(SAL_USING_POSIX))
|
||||
#include <sys/socket.h>
|
||||
|
|
|
@ -26,9 +26,6 @@ if GetDepend('SAL_USING_POSIX'):
|
|||
CPPPATH += [cwd + '/include/dfs_net']
|
||||
src += Glob('socket/net_sockets.c')
|
||||
src += Glob('dfs_net/*.c')
|
||||
|
||||
if not GetDepend('HAVE_SYS_SELECT_H'):
|
||||
CPPPATH += [cwd + '/include/dfs_net/sys_select']
|
||||
|
||||
if not GetDepend('HAVE_SYS_SOCKET_H'):
|
||||
CPPPATH += [cwd + '/include/socket/sys_socket']
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2015-05-02 Bernard First version
|
||||
*/
|
||||
|
||||
#ifndef SELECT_H__
|
||||
#define SELECT_H__
|
||||
|
||||
#include <dfs_select.h>
|
||||
|
||||
#endif
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if defined (RT_USING_POSIX)
|
||||
#include <dfs_posix.h>
|
||||
#include <dfs_select.h>
|
||||
#include <sys/select.h>
|
||||
#if defined (RT_USING_POSIX_TERMIOS)
|
||||
#include <termios.h>
|
||||
#else
|
||||
|
|
|
@ -48,7 +48,7 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
|
|||
#ifdef RT_USING_POSIX
|
||||
#include <dfs_posix.h>
|
||||
#include <poll.h>
|
||||
#include <dfs_select.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#define RTLINK01_PATH "/dev/rtlink01"
|
||||
int fd = -1;
|
||||
|
|
Loading…
Reference in New Issue