diff options
author | das <das> | 2006-10-31 22:24:39 (GMT) |
---|---|---|
committer | das <das> | 2006-10-31 22:24:39 (GMT) |
commit | 37387d61ef7f0429d0fc459901850838b6935f0d (patch) | |
tree | e1661ef8b0037e50d49ad1516252af0d65c3d699 /unix/tclUnixPort.h | |
parent | f2bac5b1bba338e3beb5b199a8126d4e838b6d82 (diff) | |
download | tcl-37387d61ef7f0429d0fc459901850838b6935f0d.zip tcl-37387d61ef7f0429d0fc459901850838b6935f0d.tar.gz tcl-37387d61ef7f0429d0fc459901850838b6935f0d.tar.bz2 |
* unix/tclUnixPort.h: ensure MODULE_SCOPE is defined before use, so
that tclPort.h can once again be included without tclInt.h.
* generic/tclEnv.c (Darwin): mark _environ symbol as unexported
even when MODULE_SCOPE != __private_extern__.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 285533b..8472ec4 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.54 2006/09/07 09:17:33 vasiljevic Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.55 2006/10/31 22:24:39 das Exp $ */ #ifndef _TCLUNIXPORT @@ -663,6 +663,10 @@ EXTERN int pthread_getattr_np _ANSI_ARGS_((pthread_t, pthread_attr_t *)); #include <pwd.h> #include <grp.h> +#ifndef MODULE_SCOPE +#define MODULE_SCOPE extern +#endif + MODULE_SCOPE struct passwd* TclpGetPwNam(const char *name); MODULE_SCOPE struct group* TclpGetGrNam(const char *name); MODULE_SCOPE struct passwd* TclpGetPwUid(uid_t uid); |