Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tmux/dist/compat extend __clang__ hack for __PC...



details:   https://anonhg.NetBSD.org/src/rev/cc7a7588cb52
branches:  trunk
changeset: 769120:cc7a7588cb52
user:      plunky <plunky%NetBSD.org@localhost>
date:      Wed Aug 31 20:13:31 2011 +0000

description:
extend __clang__ hack for __PCC__ also
(CMSG_SPACE() is not a constant)

diffstat:

 external/bsd/tmux/dist/compat/imsg-buffer.c |  4 ++--
 external/bsd/tmux/dist/compat/imsg.c        |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 4d1d360a5ed3 -r cc7a7588cb52 external/bsd/tmux/dist/compat/imsg-buffer.c
--- a/external/bsd/tmux/dist/compat/imsg-buffer.c       Wed Aug 31 20:09:57 2011 +0000
+++ b/external/bsd/tmux/dist/compat/imsg-buffer.c       Wed Aug 31 20:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $Id: imsg-buffer.c,v 1.3 2011/08/17 18:48:36 jmmv Exp $ */
+/* $Id: imsg-buffer.c,v 1.4 2011/08/31 20:13:31 plunky Exp $ */
 /*     $OpenBSD: imsg-buffer.c,v 1.3 2010/05/26 13:56:07 nicm Exp $    */
 
 /*
@@ -228,7 +228,7 @@
        struct cmsghdr  *cmsg;
        union {
                struct cmsghdr  hdr;
-#ifdef __clang__
+#if defined(__clang__) || defined(__PCC__)
                char            buf[128];
 #else
                char            buf[CMSG_SPACE(sizeof(int))];
diff -r 4d1d360a5ed3 -r cc7a7588cb52 external/bsd/tmux/dist/compat/imsg.c
--- a/external/bsd/tmux/dist/compat/imsg.c      Wed Aug 31 20:09:57 2011 +0000
+++ b/external/bsd/tmux/dist/compat/imsg.c      Wed Aug 31 20:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $Id: imsg.c,v 1.3 2011/08/17 18:48:36 jmmv Exp $ */
+/* $Id: imsg.c,v 1.4 2011/08/31 20:13:31 plunky Exp $ */
 /*     $OpenBSD: imsg.c,v 1.3 2010/05/26 13:56:07 nicm Exp $   */
 
 /*
@@ -48,7 +48,7 @@
        struct cmsghdr          *cmsg;
        union {
                struct cmsghdr hdr;
-#ifdef __clang__
+#if defined(__clang__) || defined(__PCC__)
                char    buf[128];
 #else
                char    buf[CMSG_SPACE(sizeof(int) * 16)];



Home | Main Index | Thread Index | Old Index