Hmm. Not sure what is going on here then.

sendmsg is failing with EINVAL, I know that there is weirdness because
NetBSD have made CMSG_SPACE() non-constant but I thought gcc built
correctly anyway.

What version of NetBSD is this?

Can you try this, on the off-chance?


Index: compat/imsg.h
===================================================================
RCS file: /cvsroot/tmux/tmux/compat/imsg.h,v
retrieving revision 1.4
diff -u -p -r1.4 imsg.h
--- compat/imsg.h       15 Sep 2009 23:59:40 -0000      1.4
+++ compat/imsg.h       28 Apr 2010 18:38:18 -0000
@@ -21,6 +21,9 @@
 
 #include "tmux.h"
 
+#undef CMSG_SPACE
+#define CMSG_SPACE(p) 1024
+
 #define READ_BUF_SIZE          65535
 #define IMSG_HEADER_SIZE       sizeof(struct imsg_hdr)
 #define MAX_IMSGSIZE           16384


On Sat, Apr 24, 2010 at 05:52:48PM +0200, chr wrote:
> Nicholas Marriott (Saturday 24 April 2010, 15:39):
> > 
> > are you building this with gcc?
> 
> Yes.
> 
> $ cc --version
> cc (GCC) 4.1.2 20061021 prerelease (NetBSD nb3 20061125)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> 
> -- 
> SDF Public Access UNIX System - http://sdf.lonestar.org
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to