mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 10:21:20 +00:00
Fix compilation on glibc-2.1.X.
MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1560
This commit is contained in:
parent
4efd705c4b
commit
ac403fbc41
@ -65,7 +65,9 @@
|
||||
#include <sys/poll.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#ifdef GLIBC_2_1
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
@ -409,7 +411,11 @@ int VGR_(msgsnd)(int msgid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef GLIBC_2_1
|
||||
int msgsnd(int msgid, void *msgp, size_t msgsz, int msgflg)
|
||||
#else
|
||||
int msgsnd(int msgid, const void *msgp, size_t msgsz, int msgflg)
|
||||
#endif
|
||||
{
|
||||
return VGR_(msgsnd)(msgid, msgp, msgsz, msgflg);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user