Dash:
[t2.git] / package / base / dietlibc / ppoll.patch
blobafd06f67c9f50449d30fc7ee41bd58465af24920
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../dietlibc/ppoll.patch
5 # Copyright (C) 2011 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 For udev, too.
19 - Rene Rebe <rene@exactcode.de>
21 --- /dev/null 2010-10-27 14:43:31.488782000 +0200
22 +++ dietlibc/syscalls.s/__ppoll.S 2011-01-05 15:37:28.000000000 +0100
23 @@ -0,0 +1,3 @@
24 +#include "syscalls.h"
26 +syscall(ppoll,__ppoll)
27 --- /dev/null 2010-10-27 14:43:31.488782000 +0200
28 +++ dietlibc/lib/ppoll.c 2010-11-13 12:54:09.000000000 +0100
29 @@ -0,0 +1,11 @@
30 +#include <sys/types.h>
31 +#include <fcntl.h>
32 +#define _GNU_SOURCE
33 +#include <poll.h>
35 +int __ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask, long sigsetsize);
36 +int __libc_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) {
37 + return __ppoll(fds, nfds, timeout, sigmask, _NSIG/8);
39 +int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask)
40 +__attribute__((weak,alias("__libc_ppoll")));