Moved environ definition to port.h.
This commit is contained in:
parent
a935c2afd2
commit
2dff1fe1e5
|
@ -172,6 +172,14 @@ struct statvfs
|
||||||
# define S_IXOTH S_IEXEC
|
# define S_IXOTH S_IEXEC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <crt_externs.h>
|
||||||
|
#define environ (*_NSGetEnviron())
|
||||||
|
#else
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -277,7 +277,7 @@ void wine_exec_wine_binary( const char *name, char **argv, char **envp )
|
||||||
{
|
{
|
||||||
const char *path, *pos, *ptr;
|
const char *path, *pos, *ptr;
|
||||||
|
|
||||||
if (!envp) envp = __wine_main_environ;
|
if (!envp) envp = environ;
|
||||||
if (!name) name = argv0_name;
|
if (!name) name = argv0_name;
|
||||||
|
|
||||||
/* first, try bin directory */
|
/* first, try bin directory */
|
||||||
|
|
|
@ -71,13 +71,6 @@ static const char **dll_paths;
|
||||||
static int nb_dll_paths;
|
static int nb_dll_paths;
|
||||||
static int dll_path_maxlen;
|
static int dll_path_maxlen;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <crt_externs.h>
|
|
||||||
#define environ (*_NSGetEnviron())
|
|
||||||
#else
|
|
||||||
extern char **environ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern void mmap_init(void);
|
extern void mmap_init(void);
|
||||||
|
|
||||||
/* build the dll load path from the WINEDLLPATH variable */
|
/* build the dll load path from the WINEDLLPATH variable */
|
||||||
|
|
Loading…
Reference in New Issue