aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-17 07:57:23 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-17 07:57:23 +0000
commit8dcc6a3f1b3648fffbcc7039f1dc3abab7eb7433 (patch)
tree5d3b7ca8a56142b5a690b3fa6f97efc9b27a550f
parent6293b80374f7c7b017515b9a8716a9ea16eb063a (diff)
downloadglibc-8dcc6a3f1b3648fffbcc7039f1dc3abab7eb7433.zip
glibc-8dcc6a3f1b3648fffbcc7039f1dc3abab7eb7433.tar.gz
glibc-8dcc6a3f1b3648fffbcc7039f1dc3abab7eb7433.tar.bz2
Include <wchar.h>.
-rw-r--r--gmon/gmon.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gmon/gmon.c b/gmon/gmon.c
index c8923ab..b54b9aa 100644
--- a/gmon/gmon.c
+++ b/gmon/gmon.c
@@ -43,6 +43,10 @@
#include <unistd.h>
#include <libc-internal.h>
+#ifdef USE_IN_LIBIO
+# include <wchar.h>
+#endif
+
struct __bb *__bb_head; /* Head of basic-block list or NULL. */
struct gmonparam _gmonparam = { GMON_PROF_OFF };
@@ -53,7 +57,7 @@ struct gmonparam _gmonparam = { GMON_PROF_OFF };
static int s_scale;
#define SCALE_1_TO_1 0x10000L
-#define ERR(s) __write(2, s, sizeof(s) - 1)
+#define ERR(s) __write (STDERR_FILENO, s, sizeof (s) - 1)
void moncontrol __P ((int mode));
void __moncontrol __P ((int mode));