Skip to content

Commit 7bb5826

Browse files
authored
Merge pull request #5242 from mysterywolf/revert-5199-removeselectpoll
[dfs] 保留dfs_poll.h dfs_select.h,加warning提示
2 parents da1cc99 + 702b91c commit 7bb5826

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

components/dfs/include/dfs_poll.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
*/
9+
10+
#ifndef DFS_POLL_H__
11+
#define DFS_POLL_H__
12+
13+
#include <poll.h>
14+
15+
#warning "This file will be obsolete in the next version! Please use <poll.h> to instead."
16+
17+
#endif /* DFS_POLL_H__ */
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
*/
9+
10+
#ifndef DFS_SELECT_H__
11+
#define DFS_SELECT_H__
12+
13+
#include <sys/select.h>
14+
15+
#warning "This file will be obsolete in the next version! Please use <sys/select.h> to instead."
16+
17+
#endif

0 commit comments

Comments
 (0)