Bug 480126 - Build failure on Raspberry Pi 5 / OS 6.1.0-rpi7-rpi-v8
[valgrind.git] / memcheck / tests / bug472219.c
blobcb9fefe4cb79623926733a3420d26b026319dcde
1 #define _GNU_SOURCE /* for ppoll */
2 #include <poll.h>
3 #include <stdlib.h>
4 #include "../../config.h"
6 int main()
8 int uninit;
9 struct pollfd fds[] = {{-1, uninit, 0}, {2, POLLIN, 0}};
11 poll(fds, 2, 100);
13 #if defined(HAVE_PPOLL)
14 struct timespec timeout = {0, 1e8};
15 ppoll(fds, 2, &timeout, NULL);
16 #endif