diff options
author | Michael Sokolov <msokolov@ivan.harhan.org> | 2001-01-27 19:54:49 +0000 |
---|---|---|
committer | Michael Sokolov <msokolov@ivan.harhan.org> | 2001-01-27 19:54:49 +0000 |
commit | f77d3fb6a3d1cc58baaf61d361fab4e6dc01868c (patch) | |
tree | 3e63af1b33309d464efe0c753a872595afce3908 /gprof/basic_blocks.c | |
parent | f5374dcf3359d038d12ebd8e813cbdd4bd02d0d1 (diff) | |
download | binutils-redhat-f77d3fb6a3d1cc58baaf61d361fab4e6dc01868c.tar.gz |
* basic_blocks.c: #include <unistd.h> only if it exists.
Diffstat (limited to 'gprof/basic_blocks.c')
-rw-r--r-- | gprof/basic_blocks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c index 926743ff05..fa6afe7a0d 100644 --- a/gprof/basic_blocks.c +++ b/gprof/basic_blocks.c @@ -22,7 +22,6 @@ 02111-1307, USA. */ #include <stdio.h> -#include <unistd.h> #include "basic_blocks.h" #include "corefile.h" #include "gmon_io.h" @@ -31,6 +30,9 @@ #include "libiberty.h" #include "source.h" #include "sym_ids.h" +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif /* Default option values: */ bool bb_annotate_all_lines = FALSE; |