In makedef.pl, remove duplicate symbols passed to try_symbols() for OS/2.
authorNicholas Clark <nick@ccl4.org>
Tue, 26 Jul 2011 13:15:32 +0000 (15:15 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Aug 2011 09:53:56 +0000 (11:53 +0200)
Code to try the 4 thread-specific symbols was added in 2003 by commit
5c728af092d5feba. However, all 4 symbols were already listed in makedef.pl,
added in 1999 by commit 3cfae81b38bc8edd.

(Unlike other platforms, on OS/2 adding symbols to %export that aren't
actually compiled in does not cause errors, as there is code later in
makedef.pl to read in miniperl.map, and strip from %export all symbols not
listed there.)

makedef.pl

index 19e84df..2871643 100644 (file)
@@ -316,13 +316,6 @@ if ($PLATFORM eq 'os2') {
                    CroakWinError
                    PL_do_undump
                    ));
-    try_symbols(qw(
-                    os2_cond_wait
-                    pthread_join
-                    pthread_create
-                    pthread_detach
-                   ))
-      if $define{'USE_5005THREADS'} or $define{'USE_ITHREADS'};
 }
 elsif ($PLATFORM eq 'vms') {
     try_symbols(qw(