[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[] Adding code for fork/vfork?

From: Gilles
Subject: [] Adding code for fork/vfork?
Date: Thu, 14 Apr 2011 15:02:22 +0200


A cross-compile toolchain that I use just refuses to compile any code
that uses fork() because uClinux uses vfork() instead:

"undefined reference to `_fork'"

However, some applications use if/else blocks just as this one instead
of eg. "#ifdef HAVE_FOR" conditional compiling:
if (uClinux) {
        *pid = vfork();
} else {
        *pid = fork();

Is it possible to modify so that it goes ahead and
compiles applications that handle fork/vfork without preprocessor

Thank you.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]