This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / d_msghdr_s.U
CommitLineData
cf4de4cc
JH
1?RCS: $Id$
2?RCS:
3?RCS: Copyright (c) 1999 Jarkko Hietaniemi
4?RCS:
5?RCS: You may distribute under the terms of either the GNU General Public
6?RCS: License or the Artistic License, as specified in the README file.
7?RCS:
14ed9e9a 8?MAKE:d_msghdr_s: Hasstruct i_systypes d_socket i_sysuio Setvar
cf4de4cc
JH
9?MAKE: -pick add $@ %<
10?S:d_msghdr_s:
11?S: This variable conditionally defines the HAS_STRUCT_MSGHDR symbol,
12?S: which indicates that the struct msghdr is supported.
13?S:.
14?C:HAS_STRUCT_MSGHDR:
15?C: This symbol, if defined, indicates that the struct msghdr
16?C: is supported.
17?C:.
18?H:#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
19?H:.
20?LINT:set d_msghdr_s
2f125bce 21: Check for msghdr_s
cf4de4cc 22echo " "
14ed9e9a 23echo "Checking to see if your system supports struct msghdr..." >&4
d85168a5 24set d_msghdr_s msghdr $i_systypes sys/types.h $d_socket sys/socket.h $i_sysuio sys/uio.h
cf4de4cc
JH
25eval $hasstruct
26case "$d_msghdr_s" in
6c094af6
JH
27"$define") echo "Yes, it does." ;;
28*) echo "No, it doesn't." ;;
cf4de4cc
JH
29esac
30
31