summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorobache <obache>2013-03-20 06:54:41 +0000
committerobache <obache>2013-03-20 06:54:41 +0000
commit82eb76771f63c1942d71453ccd4dcd1429054097 (patch)
tree82f0e3e8612def15148b3e05a094d27fc84d7934 /inputmethod
parent39f6785f00edbb93007990dd026cc4d65d76ea1c (diff)
downloadpkgsrc-82eb76771f63c1942d71453ccd4dcd1429054097.tar.gz
prevent to use non portable sig_t
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/scim-prime/distinfo3
-rw-r--r--inputmethod/scim-prime/patches/patch-src_prime__connection.cpp24
2 files changed, 26 insertions, 1 deletions
diff --git a/inputmethod/scim-prime/distinfo b/inputmethod/scim-prime/distinfo
index 2081689b760..c2fe2a26742 100644
--- a/inputmethod/scim-prime/distinfo
+++ b/inputmethod/scim-prime/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/11/24 12:04:46 obache Exp $
+$NetBSD: distinfo,v 1.2 2013/03/20 06:54:41 obache Exp $
SHA1 (scim-prime-1.0.1.tar.gz) = d4f9cef3a2bc665a515152429a5a30de338bb73d
RMD160 (scim-prime-1.0.1.tar.gz) = 1510d16b30e4ee46198506928b4e69fba7fa07a0
Size (scim-prime-1.0.1.tar.gz) = 556999 bytes
+SHA1 (patch-src_prime__connection.cpp) = b1fe74fb3acbe5d90cb189c4f81d9ed8de8244b8
diff --git a/inputmethod/scim-prime/patches/patch-src_prime__connection.cpp b/inputmethod/scim-prime/patches/patch-src_prime__connection.cpp
new file mode 100644
index 00000000000..945291fa6bc
--- /dev/null
+++ b/inputmethod/scim-prime/patches/patch-src_prime__connection.cpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_prime__connection.cpp,v 1.1 2013/03/20 06:54:42 obache Exp $
+
+* prevent to use non portable sig_t
+
+--- src/prime_connection.cpp.orig 2008-01-23 06:13:00.000000000 +0000
++++ src/prime_connection.cpp
+@@ -223,7 +223,7 @@ PrimeConnection::close_connection (void)
+ size_t len, remaining;
+ len = remaining = strlen (command);
+
+- sig_t prev_handler = signal (SIGPIPE, handle_sigpipe);
++ void (*prev_handler)(int) = signal (SIGPIPE, handle_sigpipe);
+
+ #if 0
+ bool rv;
+@@ -531,7 +531,7 @@ PrimeConnection::send_command (const cha
+ str += "\n";
+
+
+- sig_t prev_handler = signal (SIGPIPE, handle_sigpipe);
++ void (*prev_handler)(int) = signal (SIGPIPE, handle_sigpipe);
+
+ //
+ // write the command