Commit | Line | Data |
---|---|---|
7857a0f2 JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 2001 Jarkko Hietaniemi | |
65a32477 MBT |
4 | ?RCS: |
5 | ?RCS: You may redistribute only under the terms of the Artistic License, | |
7857a0f2 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 |
7857a0f2 JH |
9 | ?RCS: of the source tree for dist 3.0. |
10 | ?RCS: | |
11 | ?MAKE:d_usleepproto: Hasproto i_unistd | |
12 | ?MAKE: -pick add $@ %< | |
13 | ?S:d_usleepproto: | |
14 | ?S: This variable conditionally defines the HAS_USLEEP_PROTO symbol, | |
15 | ?S: which indicates to the C program that the system provides | |
16 | ?S: a prototype for the usleep() function. Otherwise, it is | |
17 | ?S: up to the program to supply one. | |
18 | ?S:. | |
19 | ?C:HAS_USLEEP_PROTO: | |
20 | ?C: This symbol, if defined, indicates that the system provides | |
21 | ?C: a prototype for the usleep() function. Otherwise, it is up | |
22 | ?C: to the program to supply one. A good guess is | |
23 | ?C: extern int usleep(useconds_t); | |
24 | ?C:. | |
25 | ?H:#$d_usleepproto HAS_USLEEP_PROTO /**/ | |
26 | ?H:. | |
65a32477 | 27 | ?LINT:set d_usleepproto |
7857a0f2 JH |
28 | : see if prototype for usleep is available |
29 | echo " " | |
30 | set d_usleepproto usleep $i_unistd unistd.h | |
31 | eval $hasproto | |
32 |