Module Name:    src
Committed By:   kre
Date:           Mon Sep 16 21:48:14 UTC 2024

Modified Files:
        src/include: time.h

Log Message:
The prototype for localtime_r needs to be inside the
#ifndef __LIBC12_SOURCE__ block, as it has a time_t
parameter, and the compat code needs to be able to
make that 32 bits instead of 64.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 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.52 src/include/time.h:1.53
--- src/include/time.h:1.52	Mon Sep 16 17:58:43 2024
+++ src/include/time.h	Mon Sep 16 21:48:14 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: time.h,v 1.52 2024/09/16 17:58:43 christos Exp $	*/
+/*	$NetBSD: time.h,v 1.53 2024/09/16 21:48:14 kre Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -184,10 +184,10 @@ char *ctime_r(const time_t *, char *) __
 #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
+#endif
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
 #  ifndef __LOCALE_T_DECLARED

Reply via email to