--- freem/src/global_bltin.c	2025/01/19 02:04:04	1.1
+++ freem/src/global_bltin.c	2025/03/24 01:33:30	1.6
@@ -1,23 +1,11 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   global.c
+ *   $Id: global_bltin.c,v 1.6 2025/03/24 01:33:30 snw Exp $
  *    freem database engine
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
- *    Copyright (C) 2020 Coherent Logic Development LLC
+ *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
  *
  *
  *   This file is part of FreeM.
@@ -35,6 +23,19 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: global_bltin.c,v $
+ *   Revision 1.6  2025/03/24 01:33:30  snw
+ *   Guard declaration of time function in global_bltin.c for portability
+ *
+ *   Revision 1.5  2025/03/22 22:52:24  snw
+ *   Add STRLEN_GBL macro to manage global string length
+ *
+ *   Revision 1.4  2025/03/09 19:14:25  snw
+ *   First phase of REUSE compliance and header reformat
+ *
+ *
+ * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  **/
 
 #include <sys/types.h>
@@ -100,7 +101,7 @@ static void panic (void);
 #define BOTTOM   6
 #define DATA     8
 
-#if !defined(__OpenBSD__) && !defined(_AIX) && !defined(__osf__) && !defined(MSDOS) && !defined(__vax__)
+#if !defined(__OpenBSD__) && !defined(_AIX) && !defined(__osf__) && !defined(MSDOS) && !defined(__vax__) && !defined(__OS2__)
  long time ();
 #endif
 
@@ -1611,6 +1612,7 @@ s20:
                         }
 
                         zref[j++] = ch0;
+
                         
                         if (j >= 252) {
                             zref[j] = EOL;
@@ -3511,7 +3513,7 @@ void gbl_dump_stat(void)
     printf ("%-10s%-20s%s\r\n", "=====", "===", "====");
     
     for (i = 0; i < NO_GLOBLS; i++) {
-        printf ("%-10d%-20d%s\r\n", usage[i], g_ages[i], oldfil[i]);    
+        printf ("%-10d%-20ld%s\r\n", usage[i], g_ages[i], oldfil[i]);    
     }
     
 }