437
|
1 |
--- tomboy-0.6.3.orig/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs 2007年 2月 12日 一 15:50:56
|
|
2 |
+++ tomboy-0.6.3/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs 2007年 8月 10日 五 17:20:14
|
|
3 |
@@ -22,20 +22,20 @@
|
|
4 |
{
|
|
5 |
public const short AF_UNIX = 1;
|
|
6 |
//TODO: SOCK_STREAM is 2 on Solaris
|
|
7 |
- public const short SOCK_STREAM = 1;
|
|
8 |
+ public const short SOCK_STREAM = 2;
|
|
9 |
|
|
10 |
//TODO: some of these are provided by libsocket instead of libc on Solaris
|
|
11 |
|
|
12 |
- [DllImport ("libc", SetLastError=true)]
|
|
13 |
+ [DllImport ("libsocket", SetLastError=true)]
|
|
14 |
protected static extern int socket (int domain, int type, int protocol);
|
|
15 |
|
|
16 |
- [DllImport ("libc", SetLastError=true)]
|
|
17 |
+ [DllImport ("libsocket", SetLastError=true)]
|
|
18 |
protected static extern int connect (int sockfd, byte[] serv_addr, uint addrlen);
|
|
19 |
|
|
20 |
- [DllImport ("libc", SetLastError=true)]
|
|
21 |
+ [DllImport ("libsocket", SetLastError=true)]
|
|
22 |
protected static extern int bind (int sockfd, byte[] my_addr, uint addrlen);
|
|
23 |
|
|
24 |
- [DllImport ("libc", SetLastError=true)]
|
|
25 |
+ [DllImport ("libsocket", SetLastError=true)]
|
|
26 |
protected static extern int listen (int sockfd, int backlog);
|
|
27 |
|
|
28 |
//TODO: this prototype is probably wrong, fix it
|