Skip to content

Commit 151a96c

Browse files
authored
[components][drivers]fix compiler error in serial dm (#8927)
fix compiler error in serial dm
1 parent b3277fa commit 151a96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/include/drivers/serial_dm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <rtthread.h>
1515
#include <rtdevice.h>
16-
#include <string.h>
16+
#include <posix/string.h>
1717

1818
int serial_dev_set_name(struct rt_serial_device *sdev);
1919

@@ -22,7 +22,7 @@ struct serial_configure serial_cfg_from_args(char *str);
2222

2323
#define serial_for_each_args(arg, args) \
2424
for (char *context = (arg = (typeof(arg))args, (void *)RT_NULL), \
25-
*context_end = rt_strchrnul((char *)args, ' '); \
25+
*context_end = strchrnul((char *)args, ' '); \
2626
(arg = strtok_r(arg, ",", &context)) && arg < context_end; \
2727
arg = RT_NULL)
2828

0 commit comments

Comments
 (0)