Skip to contentSkip to conversation

Include compat.h in syscalls/msgsnd.c for MSG_COPY for older kernels.

PATCH New Vinson Lee 1 participant 1 message Apr 6, 2013

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

PATCH 1/1 Include compat.h in syscalls/msgsnd.c for MSG_COPY for older kernels.

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

---
 syscalls/msgsnd.c |    1 +
 1 file changed, 1 insertion(+)
syscalls/msgsnd.c +1 -0
index 13e663f..132336b 100644
@@ -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 = {
Signature · 1 line
1.7.9.5