Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Bibek Sahu <scorpio@dodds.net>
To: axp-list@redhat.com, linux-kernel@vger.rutgers.edu
Subject: khttpd patch (hack)
Date: Wed, 24 Nov 1999 20:30:46 -0600 (CST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9911242024280.14015-200000@prophet.dodds.net> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 523 bytes --]


	<sigh>  I knew I spoke too soon.

	I successfully built the kernel, but it broke on the modules. 
Specifically khttpd.

	I added a line to have it #define __KERNEL_SYSCALLS__ before
including <asm/unistd.h>.  To me, this seems very much line a hack, but I
admit I don't know too well how this stuff is supposed to work.

	Anyway, I made sure the entire kernel built this time (modules &
all), so this should be the last one.  As this fix is not alpha-specific,
I'm also sending it to the linux-kernel list.

Enjoy,
- Bob

[-- Attachment #2: Type: TEXT/PLAIN, Size: 491 bytes --]

--- linux-2.3.29/net/khttpd/main.c.orig	Tue Aug 31 13:30:48 1999
+++ linux-2.3.29/net/khttpd/main.c	Wed Nov 24 20:20:38 1999
@@ -58,6 +58,8 @@
 #include <linux/init.h>
 #include <linux/wait.h>
 #include <linux/smp_lock.h>
+
+#define __KERNEL_SYSCALLS__
 #include <asm/unistd.h>
 
 #include "structure.h"
@@ -177,8 +179,6 @@
 static int CountBuf[CONFIG_KHTTPD_NUMCPU];
 
 static int errno;
-inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options);
-
 
 
 /*

                 reply	other threads:[~1999-11-25  2:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox