diff options
author | das <das@noemail.net> | 2006-10-31 22:24:39 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-10-31 22:24:39 (GMT) |
commit | e9b765a0d988a0abfc3e4e635cafbbfdfe447067 (patch) | |
tree | e1661ef8b0037e50d49ad1516252af0d65c3d699 /unix/tclUnixPort.h | |
parent | 8b11c65d3c84600d6f611226e362a4475b4b6a9a (diff) | |
download | tcl-e9b765a0d988a0abfc3e4e635cafbbfdfe447067.zip tcl-e9b765a0d988a0abfc3e4e635cafbbfdfe447067.tar.gz tcl-e9b765a0d988a0abfc3e4e635cafbbfdfe447067.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__.
FossilOrigin-Name: 4502d2d7c1819c5c3a2ac07cd1ff44cd358f4803
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); |