SOURCES: tcl-tclunixport_h.patch (NEW) - ensure MODULE_SCOPE is de...

tommat tommat at pld-linux.org
Mon Apr 16 18:02:49 CEST 2007


Author: tommat                       Date: Mon Apr 16 16:02:49 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- ensure MODULE_SCOPE is defined before use, so that tclPort.h can once
  again be included without tclInt.h. Patch from tcl cvs.

---- Files affected:
SOURCES:
   tcl-tclunixport_h.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/tcl-tclunixport_h.patch
diff -u /dev/null SOURCES/tcl-tclunixport_h.patch:1.1
--- /dev/null	Mon Apr 16 18:02:49 2007
+++ SOURCES/tcl-tclunixport_h.patch	Mon Apr 16 18:02:44 2007
@@ -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);
================================================================


More information about the pld-cvs-commit mailing list