make roken not provide environ, its really something that doesnt work in a multinamespace enviroments (read mac os x)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23943 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -63,7 +63,7 @@ find_var(char **env, char *assignment, size_t len)
|
||||
*/
|
||||
|
||||
static int
|
||||
rk_read_env_file(FILE *F, char ***env, int *assigned)
|
||||
read_env_file(FILE *F, char ***env, int *assigned)
|
||||
{
|
||||
int idx = 0;
|
||||
int i;
|
||||
@@ -139,7 +139,7 @@ read_environment(const char *file, char ***env)
|
||||
if ((F = fopen(file, "r")) == NULL)
|
||||
return 0;
|
||||
|
||||
rk_read_env_file(F, env, &assigned);
|
||||
read_env_file(F, env, &assigned);
|
||||
fclose(F);
|
||||
return assigned;
|
||||
}
|
||||
|
@@ -38,7 +38,9 @@ RCSID("$Id$");
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* putenv --
|
||||
|
@@ -444,10 +444,6 @@ extern int optind;
|
||||
extern int opterr;
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETIPNODEBYNAME
|
||||
struct hostent * ROKEN_LIB_FUNCTION
|
||||
getipnodebyname (const char *, int, int, int *);
|
||||
|
@@ -51,6 +51,10 @@ RCSID("$Id$");
|
||||
|
||||
#include "roken.h"
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
#define EX_NOEXEC 126
|
||||
#define EX_NOTFOUND 127
|
||||
|
||||
|
@@ -41,7 +41,9 @@ RCSID("$Id$");
|
||||
|
||||
#include "roken.h"
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* unsetenv --
|
||||
|
Reference in New Issue
Block a user