]> git.pld-linux.org Git - packages/tcl.git/blob - tcl-tclunixport_h.patch
- ensure MODULE_SCOPE is defined before use, so that tclPort.h can once
[packages/tcl.git] / tcl-tclunixport_h.patch
1 --- tcl8.5a5/unix/tclUnixPort.h 2006/09/07 09:17:33     1.54
2 +++ tcl8.5a5/unix/tclUnixPort.h 2006/11/13 08:23:11     1.56
3 @@ -19,7 +19,7 @@
4   * See the file "license.terms" for information on usage and redistribution
5   * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6   *
7 - * RCS: @(#) $Id$
8 + * RCS: @(#) $Id$
9   */
10  
11  #ifndef _TCLUNIXPORT
12 @@ -104,6 +104,12 @@
13  #ifndef NO_SYS_WAIT_H
14  #   include <sys/wait.h>
15  #endif
16 +#if HAVE_INTTYPES_H
17 +#   include <inttypes.h>
18 +#endif
19 +#if HAVE_STDINT_H
20 +#   include <stdint.h>
21 +#endif
22  #ifdef HAVE_UNISTD_H
23  #   include <unistd.h>
24  #else
25 @@ -663,6 +669,10 @@
26  #include <pwd.h>
27  #include <grp.h>
28  
29 +#ifndef MODULE_SCOPE
30 +#define MODULE_SCOPE extern
31 +#endif
32 +
33  MODULE_SCOPE struct passwd*  TclpGetPwNam(const char *name);
34  MODULE_SCOPE struct group*   TclpGetGrNam(const char *name);
35  MODULE_SCOPE struct passwd*  TclpGetPwUid(uid_t uid);
This page took 0.027568 seconds and 3 git commands to generate.