Use includes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@443 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-04-29 11:56:03 +00:00
parent 49c98b25ab
commit 8d904e4fb6
7 changed files with 18 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "roken.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/param.h> #include <sys/param.h>

View File

@@ -2,6 +2,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "roken.h"
#ifndef HAVE_HSTRERROR #ifndef HAVE_HSTRERROR
#include <stdio.h> #include <stdio.h>

View File

@@ -2,7 +2,10 @@
#include <config.h> #include <config.h>
#endif #endif
#include "roken.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>

View File

@@ -42,7 +42,9 @@ char *hstrerror(int herr);
#ifndef HAVE_INET_ATON #ifndef HAVE_INET_ATON
/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ /* Minimal implementation of inet_aton. Doesn't handle hex numbers. */
#ifndef __GNUC__
int inet_aton(char *cp, struct in_addr *adr); int inet_aton(char *cp, struct in_addr *adr);
#endif #endif
#endif
#endif /* __ROKEN_H__ */ #endif /* __ROKEN_H__ */

View File

@@ -42,7 +42,9 @@ char *hstrerror(int herr);
#ifndef HAVE_INET_ATON #ifndef HAVE_INET_ATON
/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ /* Minimal implementation of inet_aton. Doesn't handle hex numbers. */
#ifndef __GNUC__
int inet_aton(char *cp, struct in_addr *adr); int inet_aton(char *cp, struct in_addr *adr);
#endif #endif
#endif
#endif /* __ROKEN_H__ */ #endif /* __ROKEN_H__ */

View File

@@ -4,7 +4,10 @@
RCSID("$Id$"); RCSID("$Id$");
#include "roken.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
/* /*
* This is the easy way out, use putenv to implement setenv. We might * This is the easy way out, use putenv to implement setenv. We might

View File

@@ -2,11 +2,13 @@
#include <config.h> #include <config.h>
#endif #endif
RCSID("$Id$");
#include "roken.h"
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
RCSID("$Id$");
int snprintf(char *s, int n, const char *fmt, ...) int snprintf(char *s, int n, const char *fmt, ...)
{ {
int ret; int ret;