diff options
author | das <das@FreeBSD.org> | 2009-03-14 19:17:00 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2009-03-14 19:17:00 +0000 |
commit | 32a758b56941b6e90a12494c1b354b5155bd5643 (patch) | |
tree | 102c844201832586b8bd786ce7bdc63af950990d /sys/sys/aio.h | |
parent | 688bdd6550c82df363b157ec5f3a89cbd5a21abb (diff) | |
download | FreeBSD-src-32a758b56941b6e90a12494c1b354b5155bd5643.zip FreeBSD-src-32a758b56941b6e90a12494c1b354b5155bd5643.tar.gz |
Namespace: aio_waitcomplete() is a BSD extension.
Also, don't pollute the namespace by including <sys/time.h>.
Diffstat (limited to 'sys/sys/aio.h')
-rw-r--r-- | sys/sys/aio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/aio.h b/sys/sys/aio.h index a474b8d..5a8779b 100644 --- a/sys/sys/aio.h +++ b/sys/sys/aio.h @@ -19,7 +19,6 @@ #ifndef _SYS_AIO_H_ #define _SYS_AIO_H_ -#include <sys/time.h> #include <sys/types.h> #include <sys/signal.h> @@ -79,6 +78,8 @@ typedef struct aiocb { #ifndef _KERNEL +struct timespec; + __BEGIN_DECLS /* * Asynchronously read from a file @@ -123,7 +124,9 @@ int aio_cancel(int, struct aiocb *); */ int aio_suspend(const struct aiocb * const[], int, const struct timespec *); +#ifdef __BSD_VISIBLE int aio_waitcomplete(struct aiocb **, struct timespec *); +#endif int aio_fsync(int op, struct aiocb *aiocbp); __END_DECLS |