* basic_blocks.c: #include <unistd.h> only if it exists.
authorMichael Sokolov <msokolov@ivan.harhan.org>
Sat, 27 Jan 2001 19:54:49 +0000 (19:54 +0000)
committerMichael Sokolov <msokolov@ivan.harhan.org>
Sat, 27 Jan 2001 19:54:49 +0000 (19:54 +0000)
gprof/ChangeLog
gprof/basic_blocks.c

index 5850365..50eea2d 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-27  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+       * basic_blocks.c: #include <unistd.h> only if it exists.
+
 2000-11-06  Nick Clifton  <nickc@redhat.com>
 
        * gprof.texi: Add GNU Free Documentation License.
index 926743f..fa6afe7 100644 (file)
@@ -22,7 +22,6 @@
    02111-1307, USA.  */
 \f
 #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;