This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] BZ #3992: stdlib/fmtmsg.c: missing stdint.h include.
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 27 Feb 2012 22:34:38 -0500
- Subject: [PATCH] BZ #3992: stdlib/fmtmsg.c: missing stdint.h include.
- Authentication-results: mr.google.com; spf=pass (google.com: domain of patofiero@gmail.com designates 10.236.170.130 as permitted sender) smtp.mail=patofiero@gmail.com; dkim=pass header.i=patofiero@gmail.com
Fixes BZ #3992.
The code uses uint32_t and therefore requires stdint.h.
Given the consensus that code should include the headers
it needs I've checked in as an obvious fix for GNU/Hurd
reported in BZ #3992.
Tested on i386, no regressions.
2012-02-27 Carlos O'Donell <carlos_odonell@mentor.com>
[BZ #3992]
* stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
diff --git a/NEWS b/NEWS
index 82d32c9..35c9617 100644
--- a/NEWS
+++ b/NEWS
@@ -9,11 +9,11 @@ Version 2.16
* The following bugs are resolved with this release:
- 174, 350, 411, 2547, 2548, 3335, 4026, 4596, 4822, 5077, 5461, 5805, 5993,
- 6884, 6907, 9739, 9902, 10110, 10140, 10210, 11174, 11322, 11365, 11494,
- 12047, 13058, 13525, 13526, 13527, 13528, 13529, 13530, 13531, 13532,
- 13533, 13547, 13551, 13552, 13553, 13555, 13559, 13583, 13618, 13695,
- 13704, 13738
+ 174, 350, 411, 2547, 2548, 3335, 3992, 4026, 4596, 4822, 5077, 5461, 5805,
+ 5993, 6884, 6907, 9739, 9902, 10110, 10140, 10210, 11174, 11322, 11365,
+ 11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529, 13530, 13531,
+ 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559, 13583, 13618,
+ 13695, 13704, 13738
* ISO C11 support:
diff --git a/stdlib/fmtmsg.c b/stdlib/fmtmsg.c
index 4c02302..69947e1 100644
--- a/stdlib/fmtmsg.c
+++ b/stdlib/fmtmsg.c
@@ -1,5 +1,4 @@
-/* Copyright (C) 1997,1999-2003,2005,2006,2011,2012
- Free Software Foundation, Inc.
+/* Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -20,6 +19,7 @@
#include <fmtmsg.h>
#include <bits/libc-lock.h>
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syslog.h>