OSDN Git Service

PR preprocessor/30805:
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-tpopsp-solaris.adb
index 5343dd1..176b186 100644 (file)
@@ -17,8 +17,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNARL; see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
@@ -42,9 +42,10 @@ package body Specific is
    ----------------
 
    procedure Initialize (Environment_Task : Task_Id) is
+      pragma Unreferenced (Environment_Task);
       Result : Interfaces.C.int;
    begin
-      Result := thr_setspecific (ATCB_Key, To_Address (Environment_Task));
+      Result := thr_keycreate (ATCB_Key'Access, System.Null_Address);
       pragma Assert (Result = 0);
    end Initialize;