Skip to content

Commit c7f9eaf

Browse files
lucasdietrichcfriedt
authored andcommitted
net: http: Make http_client.c compile with CONFIG_NET_SOCKETS_POSIX_NAMES=n
Use internal constant ZSOCK_POLLIN instead of POLLIN to make the http_client source file compile without error with CONFIG_NET_SOCKETS_POSIX_NAMES disabled. Fixes #55423 Signed-off-by: Lucas Dietrich <[email protected]>
1 parent a2541d6 commit c7f9eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/http/http_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int http_wait_data(int sock, struct http_request *req, int32_t timeout)
424424
int64_t timestamp = k_uptime_get();
425425

426426
fds[0].fd = sock;
427-
fds[0].events = POLLIN;
427+
fds[0].events = ZSOCK_POLLIN;
428428

429429
do {
430430
if (timeout > 0) {

0 commit comments

Comments
 (0)