g-stheme.adb, [...] (Host_Error_Message): Return a string...
[gcc.git] / gcc / ada / g-socthi-vxworks.ads
index 4eb3a0f2230178b93f1e4131f0eaf418e12910c4..8fe96ce7a3625dcdc020ee227846d4f8fe26869d 100644 (file)
@@ -35,7 +35,7 @@
 
 --  This is the version for VxWorks
 
-with Interfaces.C.Strings;
+with Interfaces.C;
 
 with GNAT.OS_Lib;
 with GNAT.Sockets.Thin_Common;
@@ -67,8 +67,7 @@ package GNAT.Sockets.Thin is
 
    package Host_Error_Messages is
 
-      function Host_Error_Message
-        (H_Errno : Integer) return C.Strings.chars_ptr;
+      function Host_Error_Message (H_Errno : Integer) return String;
       --  Returns the error message string for the host error number H_Errno.
       --  If H_Errno is not known, returns "Unknown system error".