Re: [HACKERS] Bug in postgresql-6.3.2 (AIX specific) - Mailing list pgsql-hackers

From Andreas Zeugswetter
Subject Re: [HACKERS] Bug in postgresql-6.3.2 (AIX specific)
Date
Msg-id 01BD858D.9CF9A010@zeugswettera.user.lan.at
Whole thread Raw
Responses Re: [HACKERS] Bug in postgresql-6.3.2 (AIX specific)
List pgsql-hackers
>     int accept(int s, struct sockaddr *addr, int *addrlen);
>
> So AIX has the last parameter defined as size_t, huh?

Yes, and this is consistently done with all size parameters. (therefore also with fread, fwrite ...)
But only if _NONSTD_TYPES is not defined. I don't know where that would come from.
(it's not in any /usr/include header)

typedef unsigned long   size_t;

#ifdef  _NONSTD_TYPES
extern int      fread();
#else
extern size_t   fread(void *, size_t, size_t, FILE *);
#endif

Andreas


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Current sources?
Next
From: Andreas Zeugswetter
Date:
Subject: Re: [HACKERS] error messages not only English