* 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 58503656d75f732ae00074e6c4b2d34459f4e631..50eea2da5dda1eeef80a029c2cbcc9916719e726 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 926743ff05700019e8ecd7ee33e936bdb98dc13e..fa6afe7a0d97e9690182df4aa1443b8abddf1cd8 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;