summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authordas <das@noemail.net>2005-04-26 00:44:50 (GMT)
committerdas <das@noemail.net>2005-04-26 00:44:50 (GMT)
commited0e4d89eee6083e110579dc11cddbd3385171f2 (patch)
tree870018fbbebc7227bc3dc1184a844d0917132e2c /compat
parent2454989d7ec194495e38e0776015ba6ea1e9ee22 (diff)
downloadtcl-ed0e4d89eee6083e110579dc11cddbd3385171f2.zip
tcl-ed0e4d89eee6083e110579dc11cddbd3385171f2.tar.gz
tcl-ed0e4d89eee6083e110579dc11cddbd3385171f2.tar.bz2
* compat/string.h: fixed memchr() protoype for __APPLE__ so that we
build on Mac OS X 10.1 again. * generic/tclNotify.c (TclFinalizeNotifier): fixed notifier not being finalized in unthreaded core (was testing for notifier initialization in current thread by checking thread id != 0 but thread id is always 0 in untreaded core). * win/tclWinNotify.c (Tcl_WaitForEvent): * unix/tclUnixNotfy.c (Tcl_WaitForEvent): don't call ScaleTimeProc for zero wait times (as specified in TIP 233). * unix/Makefile.in: added @PLAT_SRCS@ to SRCS and split out NOTIFY_SRCS from UNIX_SRCS for parity with UNIX_OBJS & NOTIFY_OBJS. * unix/tcl.m4 (Darwin): added configure checks for recently added linker flags -single_module and -search_paths_first to allow building with older tools (and on Mac OS X 10.1), use -single_module in SHLIB_LD and not just T{CL,K}_SHLIB_LD_EXTRAS, added unexporting from Tk of symbols from libtclstub to avoid duplicate symbol warnings, added PLAT_SRCS definition for Mac OS X, defined MODULE_SCOPE to __private_extern__. (SC_MISSING_POSIX_HEADERS): added caching of dirent.h check. * unix/configure: autoconf-2.59 FossilOrigin-Name: 20a693c229a872ba529fda92f3baabeb24e94ff0
Diffstat (limited to 'compat')
-rw-r--r--compat/string.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/compat/string.h b/compat/string.h
index c2ecd0b..78f58bc 100644
--- a/compat/string.h
+++ b/compat/string.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: string.h,v 1.5 2004/03/17 18:14:12 das Exp $
+ * RCS: @(#) $Id: string.h,v 1.6 2005/04/26 00:45:01 das Exp $
*/
#ifndef _STRING
@@ -26,7 +26,11 @@
#include <sys/types.h>
+#ifdef __APPLE__
+extern VOID * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
+#else
extern char * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
+#endif
extern int memcmp _ANSI_ARGS_((CONST VOID *s1, CONST VOID *s2,
size_t n));
extern char * memcpy _ANSI_ARGS_((VOID *t, CONST VOID *f, size_t n));