Fix some protos for libroken
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@508 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -14,6 +14,10 @@ int putenv(const char *string); | |||||||
| int setenv(const char *var, const char *val, int rewrite); | int setenv(const char *var, const char *val, int rewrite); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_UNSETENV | ||||||
|  | void unsetenv(const char *name); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #ifndef HAVE_GETUSERSHELL | #ifndef HAVE_GETUSERSHELL | ||||||
| char *getusershell(void); | char *getusershell(void); | ||||||
| #endif | #endif | ||||||
| @@ -43,6 +47,10 @@ char *strerror(int eno); | |||||||
| char *hstrerror(int herr); | char *hstrerror(int herr); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_HERROR | ||||||
|  | void herror(char *s); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #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__ | #ifndef __GNUC__ | ||||||
| @@ -54,4 +62,12 @@ int inet_aton(char *cp, struct in_addr *adr); | |||||||
| char* getcwd(char *path, int size); | char* getcwd(char *path, int size); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_GETENT | ||||||
|  | int getent(char *cp, char *name); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_GETSTR | ||||||
|  | char *getstr(char *id, char **cpp); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #endif /*  __ROKEN_H__ */ | #endif /*  __ROKEN_H__ */ | ||||||
|   | |||||||
| @@ -14,6 +14,10 @@ int putenv(const char *string); | |||||||
| int setenv(const char *var, const char *val, int rewrite); | int setenv(const char *var, const char *val, int rewrite); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_UNSETENV | ||||||
|  | void unsetenv(const char *name); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #ifndef HAVE_GETUSERSHELL | #ifndef HAVE_GETUSERSHELL | ||||||
| char *getusershell(void); | char *getusershell(void); | ||||||
| #endif | #endif | ||||||
| @@ -43,6 +47,10 @@ char *strerror(int eno); | |||||||
| char *hstrerror(int herr); | char *hstrerror(int herr); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_HERROR | ||||||
|  | void herror(char *s); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #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__ | #ifndef __GNUC__ | ||||||
| @@ -54,4 +62,12 @@ int inet_aton(char *cp, struct in_addr *adr); | |||||||
| char* getcwd(char *path, int size); | char* getcwd(char *path, int size); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_GETENT | ||||||
|  | int getent(char *cp, char *name); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #ifndef HAVE_GETSTR | ||||||
|  | char *getstr(char *id, char **cpp); | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #endif /*  __ROKEN_H__ */ | #endif /*  __ROKEN_H__ */ | ||||||
|   | |||||||
| @@ -2,10 +2,13 @@ | |||||||
| #include <config.h> | #include <config.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #include <stdlib.h> |  | ||||||
|  |  | ||||||
| RCSID("$Id$"); | RCSID("$Id$"); | ||||||
|  |  | ||||||
|  | #include <stdlib.h> | ||||||
|  | #include <string.h> | ||||||
|  |  | ||||||
|  | #include "roken.h" | ||||||
|  |  | ||||||
| extern char **environ; | extern char **environ; | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Björn Groenvall
					Björn Groenvall