[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare sethostname if unistd.h doesn't
From: |
Ben Walton |
Subject: |
Re: declare sethostname if unistd.h doesn't |
Date: |
Sun, 20 Nov 2011 20:09:29 -0500 |
User-agent: |
Sup/git |
Excerpts from Simon Josefsson's message of Sun Nov 20 14:04:42 -0500 2011:
Hi Simon,
> Have you tested that it resolves the portability issue? If so that is
> great. My man page says Solaris uses this prototype:
>
> int sethostname(char *name, int namelen);
I used a modified version of the patch to compile inetutils and got
to the logprio.h issue, which was past the sethostname issue.
> however possibly int and size_t have the same size on all Solaris 8 and
> 9 architectures?
You're right that this should be int though. That's what the solaris
man page indicates...I grabbed the prototype from the wrong terminal
it would seem.
> In any case, I support installing this if it does something useful
> on at least some (Solaris) machine, since the current situation does
> not appear to work on any (Solaris) machine.
It could be a local modification of the inetutils gnulib code until
the proper version is implemented?
Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302