git » libfiu » commit ddd73f0

preload/posix: FreeBSD does not have waitid()

author Alberto Bertogli
2010-10-13 16:04:23 UTC
committer Alberto Bertogli
2010-10-13 16:04:23 UTC
parent c30d735f432c1fee25b4b4258b0bb2b9ddca0b4f

preload/posix: FreeBSD does not have waitid()

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/modules/posix.proc.mod +3 -0

diff --git a/preload/posix/modules/posix.proc.mod b/preload/posix/modules/posix.proc.mod
index 1054513..2db8802 100644
--- a/preload/posix/modules/posix.proc.mod
+++ b/preload/posix/modules/posix.proc.mod
@@ -19,9 +19,12 @@ pid_t waitpid(pid_t pid, int *status, int options);
 	on error: -1
 	valid errnos: ECHILD EINTR EINVAL
 
+# FreeBSD does not have waitid()
+v: #ifndef __FreeBSD__
 int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);
 	on error: -1
 	valid errnos: ECHILD EINTR EINVAL
+v: #endif
 
 int kill(pid_t pid, int sig);
 	on error: -1