From 22e7e51007f3a28ded43f6cb8f0ff59a7a691175 Mon Sep 17 00:00:00 2001 From: Trutz Behn Date: Sat, 14 Mar 2015 20:06:48 +0100 Subject: Use __typeof__ to in part avoid replicating function types --- include/poll.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/poll.h') diff --git a/include/poll.h b/include/poll.h index 05228b8..d00d7c1 100644 --- a/include/poll.h +++ b/include/poll.h @@ -11,8 +11,7 @@ extern "C" { #undef poll -extern int __poll_orig(struct pollfd *, nfds_t, int) - __asm__(__USER_LABEL_PREFIX__ "poll"); +__typeof__(poll) __poll_orig __asm__(__USER_LABEL_PREFIX__ "poll"); extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int poll(struct pollfd *fds, nfds_t nfds, int timeout) { @@ -25,8 +24,7 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout) #ifdef _GNU_SOURCE #undef ppoll -extern int __ppoll_orig(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *) - __asm__(__USER_LABEL_PREFIX__ "ppoll"); +__typeof__(ppoll) __ppoll_orig __asm__(__USER_LABEL_PREFIX__ "ppoll"); extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask) { -- cgit v1.3