bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] gnubg compile failure


From: Zulli, Louis P
Subject: Re: [Bug-gnubg] gnubg compile failure
Date: Tue, 30 Dec 2008 16:07:10 -0500 (EST)

Googling found this exchange:

# sandhu <address@hidden> wrote:
# > I have included fcntl and stat and types.h
# > but still it showing undefined O_BINARY...............

# Because it's an undefined constant. For hopefully the last time:

# UNDER UNIX THERE IS NO DIFFERENCE BETWEEN TEXT AND BINARY FILES.

# None, nada, zilch - they are just sequences of bytes. And because
# of this there is absolutely no reason at all to define a constant
# named O_BINARY or make it a flag that gets accepted by open().

If the exact same source code will run on Microcrap and Unix
once O_BINARY is defined to 0 for Unix, then there is very
good reason to use it.

So I added

# define O_BINARY 0

and everything seems fine.

----- Original Message -----
From: "Louis P Zulli" <address@hidden>
To: address@hidden
Sent: Tuesday, December 30, 2008 3:25:15 PM GMT -05:00 US/Canada Eastern
Subject: [Bug-gnubg] gnubg compile failure

Hi,

I attempted to compile the latest snapshot. Ran into 

util.c: In function ‘TEMP_g_mkstemp’:
util.c:130: error: ‘O_BINARY’ undeclared (first use in this function)
util.c:130: error: (Each undeclared identifier is reported only once
util.c:130: error: for each function it appears in.)
make[2]: *** [util.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any thoughts?

Thanks,

Louis



_______________________________________________ Bug-gnubg mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-gnubg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]