pkgsrc-ng/inputmethod/scim/patches/patch-extras_immodules_common_scim-bridge-output.h
2013-09-26 17:14:40 +02:00

23 lines
582 B
C

$NetBSD: patch-extras_immodules_common_scim-bridge-output.h,v 1.1 2012/09/26 08:17:00 jperkin Exp $
* alloca.h is required for alloca(3C) on Solaris.
* Not all systems provide MSG_NOSIGNAL.
--- extras/immodules/common/scim-bridge-output.h.orig 2012-06-13 15:22:28.000000000 +0000
+++ extras/immodules/common/scim-bridge-output.h 2012-09-26 07:56:02.073082321 +0000
@@ -28,6 +28,14 @@
#include "scim-bridge.h"
#include "scim-bridge-debug.h"
+#ifdef __sun
+#include <alloca.h>
+#endif
+
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
#ifdef __cplusplus
extern "C"
{