summaryrefslogtreecommitdiffstats
path: root/gprof/basic_blocks.c
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.harhan.org>2001-01-27 19:54:49 +0000
committerMichael Sokolov <msokolov@ivan.harhan.org>2001-01-27 19:54:49 +0000
commitb71c67aba4a8e9c34a3fe6803326b6358a112a22 (patch)
treecd8e73e701a7a371507233261cdaea4b156957e0 /gprof/basic_blocks.c
parent8679174dc4b5c7438406157cedf8af7bfabc7fb4 (diff)
downloadppe42-binutils-b71c67aba4a8e9c34a3fe6803326b6358a112a22.tar.gz
ppe42-binutils-b71c67aba4a8e9c34a3fe6803326b6358a112a22.zip
* basic_blocks.c: #include <unistd.h> only if it exists.
Diffstat (limited to 'gprof/basic_blocks.c')
-rw-r--r--gprof/basic_blocks.c4
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;
OpenPOWER on IntegriCloud