>>>>> On Thu, 12 Jul 2007 15:18:04 +0200, Kern Sibbald said:
> 
> On Thursday 12 July 2007 15:09, Martin Simmons wrote:
> > >>>>> On Thu, 12 Jul 2007 13:48:41 +0400, Sergey Svishchev said:
> > > 
> > > Good day,
> > > 
> > > With minor fixes (attached), I have successfully built and run 2.0.3 on 
> AIX 
> > > 4.3.2.0, gcc 2.95.3.  Please review.
> > 
> > > +#ifdef HAVE_AIX_OS
> > > +extern "C" int initgroups(char *,int);
> > > +#endif
> > 
> > Should the second arg type be gid_t?
> 
> I don't have an AIX to examine the system headers so I cannot say.  However, 
> on most systems,  uid_t and gid_t are int (or are passed as an int) so it 
> should be perfectly OK.

The initgroups prototype is not in the system headers on AIX 4.3, but there is
a gid_t (the rest of the file uses it!).  The problem with declaring the wrong
type (it should be unsigned int) is that it might give an error if there is a
prototype available in later releases of the OS.

__Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to