autoconf
[Top][All Lists]
Advanced

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

[configure.ac/uClinux] Adding code for fork/vfork?


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

Hello,

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 configure.ac so that it goes ahead and
compiles applications that handle fork/vfork without preprocessor
commands?

Thank you.




reply via email to

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