File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 8
8
#include <stdio.h>
9
9
#include <stdlib.h>
10
10
#include <string.h>
11
- #if defined(CONFIG_POSIX_API )
12
- #include <zephyr/posix/arpa/inet.h>
13
- #else
14
11
#include <zephyr/net/socket.h>
15
- #endif
16
12
17
13
#include "lte_params.h"
18
14
#include "utils.h"
@@ -280,9 +276,9 @@ static int parse_ip_address(struct supl_session_ctx *session_ctx,
280
276
addr_buf [i - 1 ] = buf [i ];
281
277
}
282
278
283
- if (inet_pton (AF_INET , addr_buf , session_ctx -> device_id )) {
279
+ if (zsock_inet_pton (AF_INET , addr_buf , session_ctx -> device_id )) {
284
280
session_ctx -> device_id_choice = LIBSUPL_ID_CHOICE_IPV4 ;
285
- } else if (inet_pton (AF_INET6 , addr_buf , session_ctx -> device_id )) {
281
+ } else if (zsock_inet_pton (AF_INET6 , addr_buf , session_ctx -> device_id )) {
286
282
session_ctx -> device_id_choice = LIBSUPL_ID_CHOICE_IPV6 ;
287
283
} else {
288
284
return -1 ;
You can’t perform that action at this time.
0 commit comments