--- dbus-sharp/UnixNativeTransport.cs-	Tue Nov  7 15:12:15 2006
+++ dbus-sharp/UnixNativeTransport.cs	Tue Nov  7 15:13:20 2006
@@ -19,16 +19,16 @@
 	{
 		public const short AF_UNIX = 1;
 
-		[DllImport ("libc", SetLastError=true)]
+		[DllImport ("libsocket", SetLastError=true)]
 			protected static extern int socket (int domain, int type, int protocol);
 
-		[DllImport ("libc", SetLastError=true)]
+		[DllImport ("libsocket", SetLastError=true)]
 			protected static extern int connect (int sockfd, byte[] serv_addr, uint addrlen);
 
-		[DllImport ("libc", SetLastError=true)]
+		[DllImport ("libsocket", SetLastError=true)]
 			protected static extern int bind (int sockfd, byte[] my_addr, uint addrlen);
 
-		[DllImport ("libc", SetLastError=true)]
+		[DllImport ("libsocket", SetLastError=true)]
 			protected static extern int listen (int sockfd, int backlog);
 
 		//[DllImport ("libc", SetLastError=true)]
@@ -46,7 +46,7 @@
 			//TODO: don't hard-code PF_UNIX and SocketType.Stream
 			//AddressFamily family, SocketType type, ProtocolType proto
 
-			int r = socket (AF_UNIX, (int)SocketType.Stream, 0);
+			int r = socket (AF_UNIX, 2, 0);
 			//we should get the Exception from UnixMarshal and throw it here for a better stack trace, but the relevant API seems to be private
 			UnixMarshal.ThrowExceptionForLastErrorIf (r);
 			Handle = r;
