git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add a compat/strtoumax.c for Solaris 8.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 20, 2007, 02:20 UTC
Message-ID
<7vfy9136zu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070220003533.GB28314@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 14 quoted lines
> Jason Riedy <ejr@EECS.Berkeley.EDU> wrote:
>> Solaris 8 was pre-c99, and they weren't willing to commit to
>> the strtoumax definition according to /usr/include/inttypes.h.
>> 
>> This adds NO_STRTOUMAX and NO_STRTOULL for ancient systems.
>> If NO_STRTOUMAX is defined, the routine in compat/strtoumax.c
>> will be used instead.  That routine passes its arguments to
>> strtoull unless NO_STRTOULL is defined.  If NO_STRTOULL, then
>> the routine uses strtoul (unsigned long).
>
> Ack'd (this and the fast-import patch that follows).
>
> This is a better version than the patch I sent out last night,
> so Junio please drop my patch in favor of Jason's.

Yours talk about Sol 9 and Jason talks about Sol 8. Should I take your ack to mean you want this patch on top of Jason's?

diff --git a/Makefile b/Makefile
index 821996f..f85fb7c 100644
--- a/Makefile
+++ b/Makefile
@@ -358,16 +358,17 @@ ifeq ($(uname_S),SunOS)
 		NO_SETENV = YesPlease
 		NO_C99_FORMAT = YesPlease
 		NO_STRTOUMAX = YesPlease
 	endif
 	ifeq ($(uname_R),5.9)
 		NO_UNSETENV = YesPlease
 		NO_SETENV = YesPlease
 		NO_C99_FORMAT = YesPlease
+		NO_STRTOUMAX = YesPlease
 	endif
 	INSTALL = ginstall
 	TAR = gtar
 	BASIC_CFLAGS += -D__EXTENSIONS__
 endif
 ifeq ($(uname_O),Cygwin)
 	NO_D_TYPE_IN_DIRENT = YesPlease
 	NO_D_INO_IN_DIRENT = YesPlease
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 6 of 9 in “Add a compat/strtoumax.c for Solaris 8.”
  1. Add a compat/strtoumax.c for Solaris 8.Jason Riedy, Feb 20, 2007
  2. Shawn O. PearceFeb 20, 2007
  3. Junio C HamanoFeb 20, 2007
  4. Shawn O. PearceFeb 20, 2007
  5. Junio C HamanoFeb 20, 2007
  6. Junio C HamanoFeb 20, 2007
  7. Shawn O. PearceFeb 20, 2007
  8. Junio C HamanoFeb 20, 2007
  9. Jason RiedyFeb 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.