pkgsrc/inputmethod/scim/patches/patch-extras_immodules_common_scim-bridge-output.h
jperkin c3249ce27e Solaris requires more alloca.h fixes, move them to a common header.
Add a MSG_NOSIGNAL compatability define.

Fixes package on Solaris.
2012-09-26 08:17:00 +00:00

22 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"
{