1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-23 21:10:29 +02:00

(sethostname): Give prototype if not HAVE_DECL_SETHOSTNAME,

for the benefit of Solaris 10.  Reported by Claes Wallin.
This commit is contained in:
Kevin Ryde 2006-07-24 00:45:09 +00:00
parent 67fbf55cf7
commit adc72e85fd

View file

@ -156,6 +156,11 @@ extern char ** environ;
#define F_OK 0
#endif
/* No prototype for this on Solaris 10. */
#if ! HAVE_DECL_SETHOSTNAME
int sethostname (char *name, size_t namelen);
#endif
/* On NextStep, <utime.h> doesn't define struct utime, unless we
#define _POSIX_SOURCE before #including it. I think this is less
of a kludge than defining struct utimbuf ourselves. */