From 8f5e5726134ce5b4bd436b16f367796d851df553 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Sun, 27 Apr 2014 17:54:01 -0700 Subject: Imported Upstream version 3.5-36 --- mcon/U/d_msg_flags.U | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 mcon/U/d_msg_flags.U (limited to 'mcon/U/d_msg_flags.U') diff --git a/mcon/U/d_msg_flags.U b/mcon/U/d_msg_flags.U new file mode 100644 index 0000000..d026889 --- /dev/null +++ b/mcon/U/d_msg_flags.U @@ -0,0 +1,59 @@ +?RCS: $Id: d_msg_flags.U 170 2013-08-30 16:47:47Z rmanfredi $ +?RCS: +?RCS: Copyright (c) 2006, Christian Biere +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:d_msghdr_msg_flags: Trylink cat i_systypes i_sysselct i_syssock \ + i_winsock2 i_mswsock d_windows +?MAKE: -pick add $@ %< +?S:d_msghdr_msg_flags: +?S: This variable conditionally defines the HAS_MSGHDR_MSG_FLAGS symbol, +?S: which indicates to the C program that struct msghdr has a member +?S: msg_flags. +?S:. +?C:HAS_MSGHDR_MSG_FLAGS: +?C: This symbol, if defined, indicates that struct msghdr has a +?C: member msg_flags. +?C:. +?H:#$d_msghdr_msg_flags HAS_MSGHDR_MSG_FLAGS /**/ +?H:. +?LINT:set d_msghdr_msg_flags +: check for msg_flags in struct msghdr +$cat >try.c < +#endif +#ifdef I_SYS_SOCKET +#include +#endif +#ifdef I_WINSOCK2 +#include +#endif +#ifdef I_MSWSOCK +#include +#endif +int main(void) +{ + struct msghdr msg; + msg.msg_flags |= 1; + return 0; +} +EOC +cyn="whether 'struct msghdr' has a 'msg_flags' member" +set d_msghdr_msg_flags +eval $trylink + -- cgit v1.2.3