summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-01-21 17:22:50 -0500
committerRich Felker <dalias@aerifal.cx>2024-01-21 17:22:50 -0500
commitf247462b0831cbf163e976ee9a909748c674b88b (patch)
tree7c1a41a7de160955c1c74f370e1fa0f4ce748c8c
parent07af01816d65b49a901cd784db69a030a6213e03 (diff)
downloadmusl-f247462b0831cbf163e976ee9a909748c674b88b.tar.gz
expose ppoll in default feature profile
the ppoll function has been accepted as a future part of the standard as the outcome of Austin Group tracker issue 1263. at some point it should be exposed unconditionally, but for now, expose it in the default feature profile.
-rw-r--r--include/poll.h4
-rw-r--r--src/select/ppoll.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/poll.h b/include/poll.h
index 472e4b84..bf9cb99a 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -36,7 +36,7 @@ struct pollfd {
int poll (struct pollfd *, nfds_t, int);
-#ifdef _GNU_SOURCE
+#ifdef _BSD_SOURCE
#define __NEED_time_t
#define __NEED_struct_timespec
#define __NEED_sigset_t
@@ -45,7 +45,7 @@ int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
#endif
#if _REDIR_TIME64
-#ifdef _GNU_SOURCE
+#ifdef _BSD_SOURCE
__REDIR(ppoll, __ppoll_time64);
#endif
#endif
diff --git a/src/select/ppoll.c b/src/select/ppoll.c
index e614600a..9a0bf929 100644
--- a/src/select/ppoll.c
+++ b/src/select/ppoll.c
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE
+#define _BSD_SOURCE
#include <poll.h>
#include <signal.h>
#include <errno.h>