]> git.pld-linux.org Git - packages/tcl.git/commitdiff
- ensure MODULE_SCOPE is defined before use, so that tclPort.h can once
authortommat <tommat@pld-linux.org>
Mon, 16 Apr 2007 16:02:44 +0000 (16:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  again be included without tclInt.h. Patch from tcl cvs.

Changed files:
    tcl-tclunixport_h.patch -> 1.1

tcl-tclunixport_h.patch [new file with mode: 0644]

diff --git a/tcl-tclunixport_h.patch b/tcl-tclunixport_h.patch
new file mode 100644 (file)
index 0000000..948aa0a
--- /dev/null
@@ -0,0 +1,35 @@
+--- tcl8.5a5/unix/tclUnixPort.h        2006/09/07 09:17:33     1.54
++++ tcl8.5a5/unix/tclUnixPort.h        2006/11/13 08:23:11     1.56
+@@ -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$
++ * RCS: @(#) $Id$
+  */
+ #ifndef _TCLUNIXPORT
+@@ -104,6 +104,12 @@
+ #ifndef NO_SYS_WAIT_H
+ #   include <sys/wait.h>
+ #endif
++#if HAVE_INTTYPES_H
++#   include <inttypes.h>
++#endif
++#if HAVE_STDINT_H
++#   include <stdint.h>
++#endif
+ #ifdef HAVE_UNISTD_H
+ #   include <unistd.h>
+ #else
+@@ -663,6 +669,10 @@
+ #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);
This page took 0.115937 seconds and 4 git commands to generate.