aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-02-22 23:31:31 +0800
committermbr <mbr@FreeBSD.org>2003-02-22 23:31:31 +0800
commit7e4311c678a108e50f53c053b51c455b67c60060 (patch)
tree6c14643d60eb69532b91a8789946eedf4f99bb6e
parenta7404addf06b7603765782b13cad61c35b8b19cb (diff)
downloadfreebsd-ports-gnome-7e4311c678a108e50f53c053b51c455b67c60060.tar.gz
freebsd-ports-gnome-7e4311c678a108e50f53c053b51c455b67c60060.tar.zst
freebsd-ports-gnome-7e4311c678a108e50f53c053b51c455b67c60060.zip
Make this buildable again on CURRENT.
Rev. 1.16 of src/sys/sys/msg.h broke the port three weeks ago. Reviewed by: tor
-rw-r--r--devel/linuxthreads/files/libc_calls.c9
1 files changed, 9 insertions, 0 deletions
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 <sys/ipc.h>
#include <sys/msg.h>
#include <sys/ttycom.h>
+#include <osreldate.h>
#include <time.h>
#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