Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group