mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Make this buildable again on CURRENT.
Rev. 1.16 of src/sys/sys/msg.h broke the port three weeks ago. Reviewed by: tor
This commit is contained in:
parent
3973b163f6
commit
648f6baf6f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76155
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue