You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by David Shane Holden <dp...@yahoo.com> on 2002/07/17 21:38:37 UTC

[PATCH] libapr.dsp rand.c

  When compiling apr at the command line for httpd-2.0 on Win2k, rand.c
would puke a bunch of errors.  I tracked it down to objbase.h .... not sure
why, but that file would jack everything up.  This patch gets rid of it and
still creates a random UUID.  The weird part is that it would compile
in VC with no problems, but croak at the command line.

Also, not that its necessarily correct 'cause its coming from Microsoft,
but the MSDN says that UuidCreate doesn't use the MAC address to
create UUID's anymore so I removed the comment.

Shane



Re: [PATCH] libapr.dsp rand.c

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 02:38 PM 7/17/2002, David Shane Holden wrote:
>  When compiling apr at the command line for httpd-2.0 on Win2k, rand.c
>would puke a bunch of errors.  I tracked it down to objbase.h .... not sure
>why, but that file would jack everything up.  This patch gets rid of it and
>still creates a random UUID.  The weird part is that it would compile
>in VC with no problems, but croak at the command line.

Ok.  I reviewed the PSDK docs, it seems this is supported from Win9x
and NT3.1 forward.  +1, I'll apply that bit right now.

>Also, not that its necessarily correct 'cause its coming from Microsoft,
>but the MSDN says that UuidCreate doesn't use the MAC address to
>create UUID's anymore so I removed the comment.

I disagree here.

"UuidCreate doesn't use the MAC address to create UUID's anymore"

Anymore means that it once did.  And therein lies the problem.

The current PSDK indicates that your statement is only true on XP/2000.
All other versions have this problem.

I will change the docs to reflect that the problem exists only on NT and
prior (all 9x/ME versions).

Bill