pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bmake/files bmake: provide last-resort SIZE_MAX ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27fdadcedbd5
branches:  trunk
changeset: 376235:27fdadcedbd5
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Apr 03 19:18:00 2022 +0000

description:
bmake: provide last-resort SIZE_MAX fallback for pre-<stdint.h> systems

Not committed in src/usr.bin/make because the code has diverged and
this patch doesn't look to be needed there.
It is OK to undo this change when pkgsrc imports a newer bmake.

diffstat:

 devel/bmake/files/parse.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r b872f5002d72 -r 27fdadcedbd5 devel/bmake/files/parse.c
--- a/devel/bmake/files/parse.c Sun Apr 03 19:16:04 2022 +0000
+++ b/devel/bmake/files/parse.c Sun Apr 03 19:18:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.12 2020/05/24 21:10:17 nia Exp $   */
+/*     $NetBSD: parse.c,v 1.13 2022/04/03 19:18:00 tnn Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.12 2020/05/24 21:10:17 nia Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.13 2022/04/03 19:18:00 tnn Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.12 2020/05/24 21:10:17 nia Exp $");
+__RCSID("$NetBSD: parse.c,v 1.13 2022/04/03 19:18:00 tnn Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -140,6 +140,10 @@
 
 #ifdef HAVE_STDINT_H
 #include <stdint.h>
+#else
+#ifndef SIZE_MAX
+#define SIZE_MAX 0xffffffffUL
+#endif
 #endif
 
 #ifdef HAVE_MMAP



Home | Main Index | Thread Index | Old Index