From 8d904e4fb63942c487b7043ddab02dbccfd3e525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Mon, 29 Apr 1996 11:56:03 +0000 Subject: [PATCH] Use includes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@443 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/getdtablesize.c | 2 ++ lib/roken/hstrerror.c | 2 ++ lib/roken/inet_aton.c | 3 +++ lib/roken/roken.h | 2 ++ lib/roken/roken.h.in | 2 ++ lib/roken/setenv.c | 3 +++ lib/roken/snprintf.c | 6 ++++-- 7 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/roken/getdtablesize.c b/lib/roken/getdtablesize.c index 9921cb264..fdeee76a4 100644 --- a/lib/roken/getdtablesize.c +++ b/lib/roken/getdtablesize.c @@ -2,6 +2,8 @@ #include #endif +#include "roken.h" + #include #include #include diff --git a/lib/roken/hstrerror.c b/lib/roken/hstrerror.c index 42e5975c1..9b5f49637 100644 --- a/lib/roken/hstrerror.c +++ b/lib/roken/hstrerror.c @@ -2,6 +2,8 @@ #include #endif +#include "roken.h" + #ifndef HAVE_HSTRERROR #include diff --git a/lib/roken/inet_aton.c b/lib/roken/inet_aton.c index b4b8bd56f..2d237d0a0 100644 --- a/lib/roken/inet_aton.c +++ b/lib/roken/inet_aton.c @@ -2,7 +2,10 @@ #include #endif +#include "roken.h" + #include +#include #include #include diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 4cfdead9d..c9286cb5e 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -42,7 +42,9 @@ char *hstrerror(int herr); #ifndef HAVE_INET_ATON /* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ +#ifndef __GNUC__ int inet_aton(char *cp, struct in_addr *adr); #endif +#endif #endif /* __ROKEN_H__ */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 4cfdead9d..c9286cb5e 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -42,7 +42,9 @@ char *hstrerror(int herr); #ifndef HAVE_INET_ATON /* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ +#ifndef __GNUC__ int inet_aton(char *cp, struct in_addr *adr); #endif +#endif #endif /* __ROKEN_H__ */ diff --git a/lib/roken/setenv.c b/lib/roken/setenv.c index 23ac9d224..4b3449fc2 100644 --- a/lib/roken/setenv.c +++ b/lib/roken/setenv.c @@ -4,7 +4,10 @@ RCSID("$Id$"); +#include "roken.h" + #include +#include /* * This is the easy way out, use putenv to implement setenv. We might diff --git a/lib/roken/snprintf.c b/lib/roken/snprintf.c index 99344facf..3bd6281f2 100644 --- a/lib/roken/snprintf.c +++ b/lib/roken/snprintf.c @@ -2,11 +2,13 @@ #include #endif +RCSID("$Id$"); + +#include "roken.h" + #include #include -RCSID("$Id$"); - int snprintf(char *s, int n, const char *fmt, ...) { int ret;