aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/sysv4
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/sysv4')
-rw-r--r--sysdeps/unix/sysv/sysv4/gethostname.c6
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/bits/types.h5
2 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/sysv4/gethostname.c b/sysdeps/unix/sysv/sysv4/gethostname.c
index 558d16e6f8..3f967e15d4 100644
--- a/sysdeps/unix/sysv/sysv4/gethostname.c
+++ b/sysdeps/unix/sysv/sysv4/gethostname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Brendan Kehoe (brendan@zen.org).
@@ -22,12 +22,12 @@
#include <sys/types.h>
#include <sys/systeminfo.h>
-extern int __sysinfo __P ((int command, char *buf, long count));
+extern int __sysinfo (int command, char *buf, long int count);
int
__gethostname (name, namelen)
char *name;
- size_t namelen;
+ socklen_t namelen;
{
return __sysinfo (SI_HOSTNAME, name, namelen);
}
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/bits/types.h b/sysdeps/unix/sysv/sysv4/solaris2/bits/types.h
index 1e7b50e780..65ad002f79 100644
--- a/sysdeps/unix/sysv/sysv4/solaris2/bits/types.h
+++ b/sysdeps/unix/sysv/sysv4/solaris2/bits/types.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,94,95,96,97,98,99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,95,96,97,98,99, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -134,4 +134,7 @@ typedef unsigned int __t_uscalar_t;
/* Duplicates info from stdint.h but this is used in unistd.h. */
typedef long int __intptr_t;
+/* Duplicate info from sys/socket.h. */
+typedef unsigned int __socklen_t;
+
#endif /* bits/types.h */