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

Re: Compile fix for SCO OPenServer

From
BGBoyd Lynn Gerber <gerberb@zenez.com>
Date
Jul 30, 2008, 20:09 UTC
Message-ID
<alpine.LNX.1.10.0807301403360.13032@xenau.zenez.com>
In-Reply-To
<7vtze73zwg.fsf@gitster.siamese.dyndns.org>
On Wed, 30 Jul 2008, Junio C Hamano wrote:
Show 5 quoted lines
> Aidan Van Dyk <aidan@highrise.ca> writes:
> > SCO OpenServer also hides the definitions of (at least) u_short and
> > friends if _XOPEN_SOURCE is defined.
> 
> I thought that was covered by 457bb45 (Port to 12 other Platforms., 2008-06-08).
I thought it was covered as well.
> Sign-off?
> 
> Boyd, does this make any of the earlier symbols you added redundant?

I have just tried this on 4 OpenServer 6.0 machines fresh installed and I do not need this added. I am trying to figure out what is different on his. It appears he is using the exact same version of the compiler as well.

My uname -a gives me this...
SCO_SV tech0 5 6.0.0 i386

and the gcc -V gives me the exact same compiler. So I do not know why he has to have the additional __OPENSERVER__. This does break my OpenServer 5.0.7 fresh install as well. So I would not use it. What I do not understand is why the !defined(__USLC__) does not catch it. It should.

Show 23 quoted lines
> >  git-compat-util.h |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/git-compat-util.h b/git-compat-util.h
> > index cf89cdf..42e3e0b 100644
> > --- a/git-compat-util.h
> > +++ b/git-compat-util.h
> > @@ -39,7 +39,7 @@
> >  /* Approximation of the length of the decimal representation of this type. */
> >  #define decimal_length(x)      ((int)(sizeof(x) * 2.56 + 0.5) + 1)
> >
> > -#if !defined(__APPLE__) && !defined(__FreeBSD__)  && !defined(__USLC__) && !defined(_M_UNIX)
> > +#if !defined(__APPLE__) && !defined(__FreeBSD__)  && !defined(__USLC__) && !defined(_M_UNIX) && !defined(__OPENSERVER__)
> >  #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
> >  #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
> >  #endif
> > --
> > 1.6.0.rc1.dirty
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 14 in “Compile fix for SCO OpenServer”
  1. Compile fix for SCO OpenServerAidan Van Dyk, Dec 5, 2007
  2. Compile fix for SCO OPenServerAidan Van Dyk, Jul 30, 2008
  3. Junio C HamanoJul 30, 2008
  4. Boyd Lynn GerberJul 30, 2008
  5. Junio C HamanoJul 30, 2008
  6. Aidan Van DykJul 30, 2008
  7. Boyd Lynn GerberJul 30, 2008
  8. Aidan Van DykJul 30, 2008
  9. Boyd Lynn GerberJul 30, 2008
  10. Aidan Van DykJul 30, 2008
  11. Boyd Lynn GerberJul 31, 2008
  12. Aidan Van DykJul 31, 2008
  13. Boyd Lynn GerberJul 31, 2008
  14. Boyd Lynn GerberJul 30, 2008

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.