[PATCH] kernel/sys.c build fix

From: Jeff Garzik
Date: Fri Jan 07 2005 - 02:29:20 EST



On x86-64, the attached patch is required to fix

kernel/sys.c: In function `sys_setsid':
kernel/sys.c:1078: error: `tty_sem' undeclared (first use in this function)
kernel/sys.c:1078: error: (Each undeclared identifier is reported only once
kernel/sys.c:1078: error: for each function it appears in.)

kernel/sys.c needs the tty_sem declaration from linux/tty.h.

Jeff



===== kernel/sys.c 1.101 vs edited =====
--- 1.101/kernel/sys.c 2005-01-04 13:47:32 -05:00
+++ edited/kernel/sys.c 2005-01-07 02:25:46 -05:00
@@ -23,6 +23,7 @@
#include <linux/security.h>
#include <linux/dcookies.h>
#include <linux/suspend.h>
+#include <linux/tty.h>

#include <linux/compat.h>
#include <linux/syscalls.h>