Messages in this thread Patch in this message | | | Date | Thu, 25 Nov 1999 18:29:00 +0100 (CET) | From | (Arjan van de Ven) | Subject | Re: khttpd patch (hack) |
| |
In article <Pine.LNX.4.10.9911242024280.14015-200000@prophet.dodds.net> you wrote:
> 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.
I had a patch for this (see below), but the patch obviously (as it is not in the kernel) got lost during the network-reorganisation. > 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.
i386 doesn't care. But you are right, a #define __KERNEL_SYSCALLS__ is needed. There is one more issue to clean up, I will send Linus a patch for both options this weekend.
Greetings, Arjan van de Ven
diff -r -u -N linux2314/net/khttpd/main.c linux/net/khttpd/main.c --- linux2314/net/khttpd/main.c Fri Aug 20 19:15:10 1999 +++ linux/net/khttpd/main.c Mon Aug 23 21:29:30 1999 @@ -50,6 +50,11 @@ * ****************************************************************/ + +static int errno; + +#define __KERNEL_SYSCALLS__ + #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> @@ -175,8 +180,6 @@ static int CountBuf[CONFIG_KHTTPD_NUMCPU]; -static int errno; -inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |