[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file
or directory
H. Peter Anvin
hpa at zytor.com
Mon Oct 18 12:42:43 PDT 2004
Olaf Hering wrote:
> On Mon, Oct 18, H. Peter Anvin wrote:
>
>
>>#include <sys/syscall.h>
>>
>>... would be the right thing if it works.
>
>
> It does. But linking fails, __clone() is not define. This fixes it for
> me. No idea if thats correct, looks like only ia64 has no __NR_fork
>
> --- klibc/fork.c 6 Jun 2004 02:26:30 -0000 1.7
> +++ klibc/fork.c 18 Oct 2004 18:28:57 -0000
> @@ -15,7 +15,7 @@ extern pid_t __clone(unsigned long flags
>
> pid_t fork(void)
> {
> - return __clone(SIGCHLD, 0);
> + return __clone2(SIGCHLD, 0);
> }
>
It doesn't, that's correct (because of the dual stack pointers.)
-hpa
More information about the klibc
mailing list