thomas@1910: From: Jie Zhang thomas@1910: Date: Mon, 1 Jun 2009 07:25:42 +0000 (+0000) thomas@1910: Subject: Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc... thomas@1910: X-Git-Url: http://blackfin.uclinux.org/git/?p=readonly-mirrors%2Ftoolchain.git;a=commitdiff_plain;h=cacea6b12bae6f6cfd08e2bbec536e9b23b342f5 thomas@1910: thomas@1910: Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc provide fork() stub on NOMMU targets. It's default off. thomas@1910: thomas@1910: thomas@1910: git-svn-id: svn://localhost/svn/toolchain/trunk@3417 2adf4935-75e9-4407-93b2-34b21a1880a4 thomas@1910: --- thomas@1910: thomas@1910: Index: uClibc-0.9.30.2/libc/unistd/daemon.c thomas@1910: =================================================================== thomas@1910: --- uClibc-0.9.30.2.orig/libc/unistd/daemon.c 2010-01-13 22:22:31.000000000 +0100 thomas@1910: +++ uClibc-0.9.30.2/libc/unistd/daemon.c 2010-04-06 22:04:11.000000000 +0200 thomas@1910: @@ -55,7 +55,6 @@ thomas@1910: libc_hidden_proto(dup2) thomas@1910: libc_hidden_proto(setsid) thomas@1910: libc_hidden_proto(chdir) thomas@1910: -libc_hidden_proto(fork) thomas@1910: thomas@1910: #ifndef __ARCH_USE_MMU__ thomas@1910: #include thomas@1910: @@ -85,6 +84,8 @@ thomas@1910: return ret; thomas@1910: } thomas@1910: #else thomas@1910: +libc_hidden_proto(fork) thomas@1910: + thomas@1910: static inline pid_t fork_parent(void) thomas@1910: { thomas@1910: switch (fork()) {