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

[PATCH] Enable pt-fork and add fork alias



This patch adds pt-fork.c to the Makefile and adds a fork -> __fork
alias.
This allow to run programs linked against LinuxThreads that expect
fork functions to be present in libpthread.

diff -urNdp nptl/sysdeps/unix/sysv/linux/pt-fork.c nptl/sysdeps/unix/sysv/linux/pt-fork.c
--- nptl/sysdeps/unix/sysv/linux/pt-fork.c	2002-09-19 11:57:31.000000000 +0200
+++ nptl/sysdeps/unix/sysv/linux/pt-fork.c	2002-10-31 23:32:17.000000000 +0100
@@ -25,4 +25,5 @@ __fork (void)
 {
   return __libc_fork ();
 }
 strong_alias (__fork, _fork)
+strong_alias (__fork, fork)
diff -urNdp nptl/Makefile nptl/Makefile
--- nptl/Makefile	2002-10-10 09:28:13.000000000 +0200
+++ nptl/Makefile	2002-10-31 23:32:12.000000000 +0100
@@ -101,5 +102,5 @@ libpthread-routines = init events \
 		      pt-wait pt-waitpid pt-readv pt-writev pt-creat \
 		      pt-msgrcv pt-msgsnd pt-poll pt-select pt-sigpause \
 		      pt-sigsuspend pt-sigwait pt-sigwaitinfo pt-waitid \
-		      pt-pselect \
+		      pt-pselect pt-fork \
 		      flockfile ftrylockfile funlockfile \

Attachment: pgp00001.pgp
Description: PGP signature


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