Commit e965f6ad by Matthew Gingell Committed by Arnaud Charlet

sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.

2005-03-08  Matthew Gingell  <gingell@adacore.com>

	* sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.

From-SVN: r96510
parent d0816031
......@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
* Copyright (C) 1992-2004 Free Software Foundation, Inc. *
* Copyright (C) 1992-2005 Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
......@@ -655,16 +655,14 @@ get_gmtoff (void)
/* Definition of __gnat_locatime_r used by a-calend.adb */
#if defined (_AIX) || defined (__EMX__)
#if defined (__EMX__)
#define Lock_Task system__soft_links__lock_task
extern void (*Lock_Task) (void);
#define Unlock_Task system__soft_links__unlock_task
extern void (*Unlock_Task) (void);
/* Provide reentrant version of localtime on Aix and OS/2. Note that AiX does
provide localtime_r, but in the library libc_r which doesn't get included
systematically, so we can't use it. */
/* Provide reentrant version of localtime on OS/2. */
extern struct tm *__gnat_localtime_r (const time_t *, struct tm *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment