Module Name: src Committed By: christos Date: Mon Sep 16 17:58:43 UTC 2024
Modified Files: src/include: time.h Log Message: move gmtime_r in the right ifdefs block, it was not removed in 202405. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/include/time.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/time.h diff -u src/include/time.h:1.51 src/include/time.h:1.52 --- src/include/time.h:1.51 Mon Sep 16 13:25:34 2024 +++ src/include/time.h Mon Sep 16 13:58:43 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.51 2024/09/16 17:25:34 christos Exp $ */ +/* $NetBSD: time.h,v 1.52 2024/09/16 17:58:43 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -176,12 +176,15 @@ int timer_getoverrun(timer_t); char *asctime_r(const struct tm * __restrict, char * __restrict); #ifndef __LIBC12_SOURCE__ char *ctime_r(const time_t *, char *) __RENAME(__ctime_r50); -struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict) - __RENAME(__gmtime_r50); #endif #endif + #if (_POSIX_C_SOURCE - 0) >= 199506L || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) || defined(_NETBSD_SOURCE) +#ifndef __LIBC12_SOURCE__ +struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict) + __RENAME(__gmtime_r50); +#endif struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict) __RENAME(__localtime_r50); #endif