[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory

Olaf Hering olh at suse.de
Mon Oct 18 21:30:13 PDT 2004


 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);
 }
 
 #endif /* __NR_fork */


-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list