This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/470] New: mktime.c's __mktime_internal might have problems outside glibc
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Oct 2004 20:02:18 -0000
- Subject: [Bug libc/470] New: mktime.c's __mktime_internal might have problems outside glibc
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
glibc's mktime.c defines a function __mktime_internal that might
conflict with a __mktime_internal defined by the standard C library,
when mktime.c is included by GNU applications outside of the glibc
context. Here is a fix.
2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
Import fix from gnulib.
* time/mktime.c (__mktime_internal) [!defined _LIBC]: Define to
mktime_internal, to avoid clashes with any __mktime_internal
function defined in the standard library.
--- 2/time/mktime.c 2004-10-22 12:39:29 -0700
+++ 3/time/mktime.c 2004-10-22 12:55:10 -0700
@@ -108,6 +108,7 @@ const unsigned short int __mon_yday[2][1
# include "time_r.h"
# undef __localtime_r
# define __localtime_r localtime_r
+# define __mktime_internal mktime_internal
#endif
--
Summary: mktime.c's __mktime_internal might have problems outside
glibc
Product: glibc
Version: 2.3.3
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: eggert at gnu dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: NA.
GCC host triplet: NA.
GCC target triplet: NA.
http://sources.redhat.com/bugzilla/show_bug.cgi?id=470
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.