Include <errno.h>.
authorUlrich Drepper <drepper@redhat.com>
Wed, 5 Sep 2001 00:08:11 +0000 (00:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 5 Sep 2001 00:08:11 +0000 (00:08 +0000)
(__syscall_gethostname): Add prototype.

sysdeps/unix/sysv/linux/alpha/gethostname.c

index 28846ef..3a48afc 100644 (file)
@@ -17,6 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <errno.h>
 #include <string.h>
 #include <unistd.h>
 
@@ -24,6 +25,8 @@
 #include <sys/syscall.h>
 #include <bp-checks.h>
 
+extern int __syscall_gethostname (char *name, size_t len);
+
 
 int
 __gethostname (char *name, size_t len)