Re: [HACKERS] Bug in postgresql-6.3.2 (AIX specific)

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Bug in postgresql-6.3.2 (AIX specific)
Date: 1998-05-22 12:25:44
Message-ID: 01BD858D.9CF9A010@zeugswettera.user.lan.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Zeugswetter 1998-05-22 12:45:21 Re: [HACKERS] error messages not only English
Previous Message The Hermit Hacker 1998-05-22 11:54:11 Re: [HACKERS] Current sources?