Re: [PATCHES] pg_id.c windows fix

2003-10-09 Thread Bruce Momjian
OK, patch applied. I changed DWORD to unsigned long. --- Andrew Dunstan wrote: > Here's a patch for pg_id.c that lets it compile cleanly and run on Windows. > > cheers > > andrew > > Index: src/bin/pg_id/pg_id.c > ==

Re: [PATCHES] pg_id.c windows fix

2003-10-05 Thread Andrew Dunstan
n" <[EMAIL PROTECTED]> To: "Andrew Dunstan" <[EMAIL PROTECTED]> Cc: "PG Patches" <[EMAIL PROTECTED]> Sent: Sunday, October 05, 2003 12:17 AM Subject: Re: [PATCHES] pg_id.c windows fix > > Can you tell me what Win32 compile environment can't handle

Re: [PATCHES] pg_id.c windows fix

2003-10-04 Thread Stephan Szabo
On Sun, 5 Oct 2003, Bruce Momjian wrote: > > Can you tell me what Win32 compile environment can't handle a sizeof() > as a function parameter? > > ! GetUserName(pw->pw_name, sizeof(pw->pw_name)-1); > > Does casting to DWORD help? > > ! GetUserName(pw->pw_name, &pwname_size); It looks

Re: [PATCHES] pg_id.c windows fix

2003-10-04 Thread Bruce Momjian
Can you tell me what Win32 compile environment can't handle a sizeof() as a function parameter? ! GetUserName(pw->pw_name, sizeof(pw->pw_name)-1); Does casting to DWORD help? --- Andrew Dunstan wrote: > Here's a patc