This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add HAS_SBRK_PROTO.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 16 Nov 2000 15:46:05 +0000 (15:46 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 16 Nov 2000 15:46:05 +0000 (15:46 +0000)
p4raw-id: //depot/metaconfig@7710

U/perl/d_sbrkproto.U [new file with mode: 0644]

diff --git a/U/perl/d_sbrkproto.U b/U/perl/d_sbrkproto.U
new file mode 100644 (file)
index 0000000..98441ab
--- /dev/null
@@ -0,0 +1,33 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2000 Jarkko Hietaniemi
+?RCS: 
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?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 Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_sbrkproto: Hasproto i_unistd
+?MAKE: -pick add $@ %<
+?S:d_sbrkproto:
+?S:    This variable conditionally defines the HAS_SBRK_PROTO symbol,
+?S:    which indicates to the C program that the system provides
+?S:    a prototype for the sbrk() function.  Otherwise, it is
+?S:    up to the program to supply one.
+?S:.
+?C:HAS_SBRK_PROTO:
+?C:    This symbol, if defined, indicates that the system provides
+?C:    a prototype for the sbrk() function.  Otherwise, it is up
+?C:    to the program to supply one.  Good guesses are
+?C:            extern void* sbrk _((int));
+?C:            extern void* sbrk _((size_t));
+?C:.
+?H:#$d_sbrkproto       HAS_SBRK_PROTO  /**/
+?H:.
+?LINT:set d_sbrkproto 
+: see if prototype for sbrk is available
+echo " "
+set d_sbrkproto sbrk $i_unistd unistd.h
+eval $hasproto
+