From: Vinson Lee <[email protected]>

This patch fixes this build error on Linux 3.7 and older.

  CC    syscalls/msgsnd.o
syscalls/msgsnd.c:19:40: error: ‘MSG_COPY’ undeclared here (not in a function)
make: *** [syscalls/msgsnd.o] Error 1

Signed-off-by: Vinson Lee <[email protected]>
---
 syscalls/msgsnd.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/syscalls/msgsnd.c b/syscalls/msgsnd.c
index 13e663f..132336b 100644
--- a/syscalls/msgsnd.c
+++ b/syscalls/msgsnd.c
@@ -2,6 +2,7 @@
  * SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, 
msgsz, int, msgflg)
  */
 #include <linux/msg.h>
+#include "compat.h"
 #include "sanitise.h"
 
 struct syscall syscall_msgsnd = {
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to