patches/tomboy-01-solaris.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 437 5c896c782f7a
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
437
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- tomboy-0.6.3.orig/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs	2007年  2月 12日 一 15:50:56
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ tomboy-0.6.3/Tomboy/dbus-sharp/dbus-sharp/src/UnixNativeTransport.cs	2007年  8月 10日 五 17:20:14
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -22,20 +22,20 @@
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 	{
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 		public const short AF_UNIX = 1;
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 		//TODO: SOCK_STREAM is 2 on Solaris
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
-		public const short SOCK_STREAM = 1;
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
+		public const short SOCK_STREAM = 2;
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 		//TODO: some of these are provided by libsocket instead of libc on Solaris
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
-		[DllImport ("libc", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
+		[DllImport ("libsocket", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
 			protected static extern int socket (int domain, int type, int protocol);
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
-		[DllImport ("libc", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+		[DllImport ("libsocket", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
 			protected static extern int connect (int sockfd, byte[] serv_addr, uint addrlen);
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
-		[DllImport ("libc", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
+		[DllImport ("libsocket", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
 			protected static extern int bind (int sockfd, byte[] my_addr, uint addrlen);
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
-		[DllImport ("libc", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
+		[DllImport ("libsocket", SetLastError=true)]
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
 			protected static extern int listen (int sockfd, int backlog);
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
 
5c896c782f7a 2007-09-01 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
 		//TODO: this prototype is probably wrong, fix it