| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: poll.h,v 1.1.2.1 2008/11/08 21:16:56 christos Exp $ */ | | 1 | /* $NetBSD: poll.h,v 1.1.2.2 2008/12/28 21:24:10 christos Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1998 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1998 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Charles M. Hannum. | | 8 | * by Charles M. Hannum. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -29,25 +29,26 @@ | | | @@ -29,25 +29,26 @@ |
29 | * POSSIBILITY OF SUCH DAMAGE. | | 29 | * POSSIBILITY OF SUCH DAMAGE. |
30 | */ | | 30 | */ |
31 | | | 31 | |
32 | #ifndef _COMPAT_SYS_POLL_H_ | | 32 | #ifndef _COMPAT_SYS_POLL_H_ |
33 | #define _COMPAT_SYS_POLL_H_ | | 33 | #define _COMPAT_SYS_POLL_H_ |
34 | | | 34 | |
35 | #ifndef _KERNEL | | 35 | #ifndef _KERNEL |
36 | #include <sys/poll.h> | | 36 | #include <sys/poll.h> |
37 | #include <sys/cdefs.h> | | 37 | #include <sys/cdefs.h> |
38 | | | 38 | |
39 | #ifdef _NETBSD_SOURCE | | 39 | #ifdef _NETBSD_SOURCE |
40 | #include <sys/sigtypes.h> /* for sigset_t */ | | 40 | #include <sys/sigtypes.h> /* for sigset_t */ |
41 | struct timespec; | | 41 | struct timespec; |
| | | 42 | struct timespec50; |
42 | | | 43 | |
43 | __BEGIN_DECLS | | 44 | __BEGIN_DECLS |
44 | int pollts(struct pollfd * __restrict, nfds_t, | | 45 | int pollts(struct pollfd * __restrict, nfds_t, |
45 | const struct timespec50 * __restrict, const sigset_t * __restrict); | | 46 | const struct timespec50 * __restrict, const sigset_t * __restrict); |
46 | int __pollts50(struct pollfd * __restrict, nfds_t, | | 47 | int __pollts50(struct pollfd * __restrict, nfds_t, |
47 | const struct timespec * __restrict, const sigset_t * __restrict); | | 48 | const struct timespec * __restrict, const sigset_t * __restrict); |
48 | __END_DECLS | | 49 | __END_DECLS |
49 | #endif /* _NETBSD_SOURCE */ | | 50 | #endif /* _NETBSD_SOURCE */ |
50 | | | 51 | |
51 | #endif /* _KERNEL */ | | 52 | #endif /* _KERNEL */ |
52 | | | 53 | |
53 | #endif /* !_COMPAT_SYS_POLL_H_ */ | | 54 | #endif /* !_COMPAT_SYS_POLL_H_ */ |