Skip to content

Commit 191d38d

Browse files
jmichalski-antkartben
authored andcommitted
posix: define POLLPRI in posix/poll.h
Add the POLLPRI constant defined by POSIX and test for it. Signed-off-by: Jakub Michalski <[email protected]> Signed-off-by: Maciej Sobkowski <[email protected]>
1 parent f4cb7e3 commit 191d38d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/zephyr/posix/poll.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ typedef unsigned int nfds_t;
1717
#define pollfd zsock_pollfd
1818

1919
#define POLLIN ZSOCK_POLLIN
20+
#define POLLPRI ZSOCK_POLLPRI
2021
#define POLLOUT ZSOCK_POLLOUT
2122
#define POLLERR ZSOCK_POLLERR
2223
#define POLLHUP ZSOCK_POLLHUP

tests/posix/headers/src/poll_h.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ZTEST(posix_headers, test_poll_h)
2828
zassert_not_equal(-1, POLLIN);
2929
/* zassert_not_equal(-1, POLLRDNORM); */ /* not implemented */
3030
/* zassert_not_equal(-1, POLLRDBAND); */ /* not implemented */
31-
/* zassert_not_equal(-1, POLLPRI); */ /* not implemented */
31+
zassert_not_equal(-1, POLLPRI);
3232
zassert_not_equal(-1, POLLOUT);
3333
/* zassert_not_equal(-1, POLLWRNORM); */ /* not implemented */
3434
/* zassert_not_equal(-1, POLLWRBAND); */ /* not implemented */

0 commit comments

Comments
 (0)