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_sbrkproto.U
CommitLineData
d93d2326
JH
1?RCS: $Id$
2?RCS:
3?RCS: Copyright (c) 2000 Jarkko Hietaniemi
65a32477
MBT
4?RCS:
5?RCS: You may redistribute only under the terms of the Artistic License,
d93d2326
JH
6?RCS: as specified in the README file that comes with the distribution.
7?RCS: You may reuse parts of this distribution only within the terms of
65a32477 8?RCS: that same Artistic License; a copy of which may be found at the root
d93d2326
JH
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?MAKE:d_sbrkproto: Hasproto i_unistd
12?MAKE: -pick add $@ %<
13?S:d_sbrkproto:
14?S: This variable conditionally defines the HAS_SBRK_PROTO symbol,
15?S: which indicates to the C program that the system provides
16?S: a prototype for the sbrk() function. Otherwise, it is
17?S: up to the program to supply one.
18?S:.
19?C:HAS_SBRK_PROTO:
20?C: This symbol, if defined, indicates that the system provides
21?C: a prototype for the sbrk() function. Otherwise, it is up
22?C: to the program to supply one. Good guesses are
c48471d3
JH
23?C: extern void* sbrk(int);
24?C: extern void* sbrk(size_t);
d93d2326
JH
25?C:.
26?H:#$d_sbrkproto HAS_SBRK_PROTO /**/
27?H:.
65a32477 28?LINT:set d_sbrkproto
d93d2326
JH
29: see if prototype for sbrk is available
30echo " "
31set d_sbrkproto sbrk $i_unistd unistd.h
32eval $hasproto
33