diff options
author | das <das> | 2002-09-26 17:07:33 (GMT) |
---|---|---|
committer | das <das> | 2002-09-26 17:07:33 (GMT) |
commit | 32b1b1f7e6f65a67d4b080700b835c3d09edce65 (patch) | |
tree | 112cb862271c362e292651bcd940c53f02ab243c /macosx/tkMacOSXPort.h | |
parent | 34668c7563378b40e10094f94be222b167d40723 (diff) | |
download | tk-32b1b1f7e6f65a67d4b080700b835c3d09edce65.zip tk-32b1b1f7e6f65a67d4b080700b835c3d09edce65.tar.gz tk-32b1b1f7e6f65a67d4b080700b835c3d09edce65.tar.bz2 |
* macosx/Makefile: preserve environment value of INSTALL_ROOT.
When embedding only use deployment build. Force relink before
embedded build to ensure new linker flags are picked up.
* macosx/buildTkConfig.tcl (new):
* macosx/Wish.pbproj/project.pbxproj: synthesize tkConfig.sh
based on tclConfig.sh in Tcl.framework and tkConfig.sh.in.
Add symbolic links to debug lib, stub libs and tkConfig.sh
in framework toplevel. Made tkIntXlibDecls.h a public header
since Headers/X11/Xlib.h includes it. Install wish8.4 script
that runs "Wish Shell.app" and corresponding wish link.
Use tcl headers from built Tcl.framework instead of from tcl
source directory.
* macosx/tkMacOSXPort.h: added missing standard unix includes
and defines, similarly to tkUnixPort.h.
* macosx/tkMacOSXNotify.c: removed dependency on internal tcl
header "tclPort.h"
* unix/Makefile.in:
* unix/install-sh: copied support for 'install-strip' target
over from tcl/unix/{Makefile.in,install-sh}
Diffstat (limited to 'macosx/tkMacOSXPort.h')
-rw-r--r-- | macosx/tkMacOSXPort.h | 84 |
1 files changed, 75 insertions, 9 deletions
diff --git a/macosx/tkMacOSXPort.h b/macosx/tkMacOSXPort.h index c59a005..8f9d2be 100644 --- a/macosx/tkMacOSXPort.h +++ b/macosx/tkMacOSXPort.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXPort.h,v 1.2 2002/08/31 06:12:30 das Exp $ + * RCS: @(#) $Id: tkMacOSXPort.h,v 1.3 2002/09/26 17:07:33 das Exp $ */ #ifndef _TKMACPORT @@ -32,17 +32,46 @@ # endif #endif +#include <stdio.h> +#include <ctype.h> +#include <fcntl.h> +#ifdef HAVE_LIMITS_H +# include <limits.h> +#else +# include "../compat/limits.h" +#endif +#include <math.h> +#include <pwd.h> +#ifdef NO_STDLIB_H +# include "../compat/stdlib.h" +#else +# include <stdlib.h> +#endif +#include <string.h> +#include <sys/types.h> +#include <sys/file.h> +#ifdef HAVE_SYS_SELECT_H +# include <sys/select.h> +#endif +#include <sys/stat.h> #ifndef _TCL # include <tcl.h> #endif - -#include <time.h> -#include <stdlib.h> -#include <string.h> -#include "tclMath.h" -#include <ctype.h> -#include <limits.h> - +#if TIME_WITH_SYS_TIME +# include <sys/time.h> +# include <time.h> +#else +# if HAVE_SYS_TIME_H +# include <sys/time.h> +# else +# include <time.h> +# endif +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#else +# include "../compat/unistd.h" +#endif #include <X11/Xlib.h> #include <X11/cursorfont.h> #include <X11/keysym.h> @@ -52,6 +81,43 @@ #include "tkIntXlibDecls.h" /* + * The following macro defines the type of the mask arguments to + * select: + */ + +#ifndef NO_FD_SET +# define SELECT_MASK fd_set +#else +# ifndef _AIX + typedef long fd_mask; +# endif +# if defined(_IBMR2) +# define SELECT_MASK void +# else +# define SELECT_MASK int +# endif +#endif + +/* + * The following macro defines the number of fd_masks in an fd_set: + */ + +#ifndef FD_SETSIZE +# ifdef OPEN_MAX +# define FD_SETSIZE OPEN_MAX +# else +# define FD_SETSIZE 256 +# endif +#endif +#if !defined(howmany) +# define howmany(x, y) (((x)+((y)-1))/(y)) +#endif +#ifndef NFDBITS +# define NFDBITS NBBY*sizeof(fd_mask) +#endif +#define MASK_SIZE howmany(FD_SETSIZE, NFDBITS) + +/* * Not all systems declare the errno variable in errno.h. so this * file does it explicitly. */ |