]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Partly revert r10044 -- do use struct vki_sockaddr, and define it for AIX.
authorNicholas Nethercote <njn@valgrind.org>
Fri, 22 May 2009 00:52:14 +0000 (00:52 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 22 May 2009 00:52:14 +0000 (00:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10096

coregrind/m_libcfile.c

index e328b4b494c97b87ce69f13ed30d6cabb948b21d..9c7e66497c68262a8bea42faea203faf47383575 100644 (file)
@@ -564,9 +564,13 @@ Int VG_(mkstemp) ( HChar* part_of_name, /*OUT*/HChar* fullname )
 
 
 /* ---------------------------------------------------------------------
-   Socket-related stuff.  This is very Linux-kernel specific.
+   Socket-related stuff.
    ------------------------------------------------------------------ */
 
+#if defined(VGO_aix5)
+struct vki_sockaddr_in;
+#endif
+
 static
 Int parse_inet_addr_and_port ( UChar* str, UInt* ip_addr, UShort* port );
 
@@ -574,9 +578,7 @@ static
 Int my_socket ( Int domain, Int type, Int protocol );
 
 static
-Int my_connect ( Int sockfd, 
-                 /* struct vki_sockaddr_in* */ void* serv_addr,
-                 Int addrlen );
+Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen );
 
 UInt VG_(htonl) ( UInt x )
 {
@@ -749,9 +751,7 @@ Int my_socket ( Int domain, Int type, Int protocol )
 
 
 static
-Int my_connect ( Int sockfd, 
-                 /* struct vki_sockaddr_in* */ void* serv_addr,
-                 Int addrlen )
+Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen )
 {
 #  if defined(VGP_x86_linux) || defined(VGP_ppc32_linux) \
       || defined(VGP_ppc64_linux)