From 648f6baf6f1db84cf9f83c4df96dd699e1ec58d0 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Sat, 22 Feb 2003 15:31:31 +0000 Subject: [PATCH] Make this buildable again on CURRENT. Rev. 1.16 of src/sys/sys/msg.h broke the port three weeks ago. Reviewed by: tor --- devel/linuxthreads/files/libc_calls.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devel/linuxthreads/files/libc_calls.c b/devel/linuxthreads/files/libc_calls.c index b86a962b6dbc..02511261a568 100644 --- a/devel/linuxthreads/files/libc_calls.c +++ b/devel/linuxthreads/files/libc_calls.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include "pthread.h" #include "internals.h" @@ -104,11 +105,19 @@ int msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) } #if __STDC__ +#if __FreeBSD_version > 500100 +int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg) +#else int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg) +#endif #else int msgsnd(msqid, msgp, msgsz, msgflg) int msqid; +#if __FreeBSD_version > 500100 + const void *msgp; +#else void *msgp; +#endif size_t msgsz; int msgflg; #endif