Windows CE build changes. This addresses most of the outstanding Windows
authordougt%meer.net
Fri, 29 Apr 2005 13:33:34 +0000
changeset 5634 7c3cc2b95cd4bb5530b6744c36917af1c226dec0
parent 5632 fabaf609723b208f85d25338c0ef9c6e46708cdb
child 5639 373aa8ae5a0d5a745142f3a98aa576a656d5bd28
child 6440 8e23ef81677b8168c4f1117fe6bc2820cf70d1e3
child 6611 d3f7f2bb794bfc0b533d90433bdfdf524e3b4d67
child 6919 3ba6a7d04cef8f3d58e2b5abce5a7f9accd0573a
child 7344 b25347bbd339142bdfb62ec9b3831083327c4e77
push idunknown
push userunknown
push dateunknown
bugs242518, 292118, 291229
Windows CE build changes. This addresses most of the outstanding Windows CE compilation issues. This patch also fixes/removes CheckStackGrowthDirection assertions in Javscript. This change is based on bug 242518. See comment 36. This patch also removes the unused enum in transformiix . See bug 292118. r/sr = dveditz/shaver b = 291229 a = asa
dbm/include/mcom_db.h
dbm/include/winfile.h
dbm/src/Makefile.in
--- a/dbm/include/mcom_db.h
+++ b/dbm/include/mcom_db.h
@@ -69,16 +69,21 @@
  * SUCH DAMAGE.
  *
  *	@(#)db.h	8.7 (Berkeley) 6/16/94
  */
 
 #ifndef _DB_H_
 #define	_DB_H_
 
+
+#ifdef WINCE
+#define off_t long
+#endif
+
 #ifndef macintosh
 #include <sys/types.h>
 #endif
 #include "prtypes.h"
 
 #include <limits.h>
 
 #ifdef __DBINTERFACE_PRIVATE
--- a/dbm/include/winfile.h
+++ b/dbm/include/winfile.h
@@ -26,17 +26,23 @@ typedef struct DIR_Struct {
 } DIR;
 
 #define _ST_FSTYPSZ 16
 
 #if !defined(__BORLANDC__) && !defined(__GNUC__)
  typedef unsigned long mode_t;
  typedef          long uid_t;
  typedef          long gid_t;
+
+#ifdef WINCE
+ typedef          long ino_t;
+#else
  typedef          long off_t;
+#endif
+
  typedef unsigned long nlink_t;
 #endif 
 
 typedef struct timestruc {
     time_t  tv_sec;         /* seconds */
     long    tv_nsec;        /* and nanoseconds */
 } timestruc_t;
 
--- a/dbm/src/Makefile.in
+++ b/dbm/src/Makefile.in
@@ -64,12 +64,16 @@ LOCAL_INCLUDES	= -I$(srcdir)/../include
 
 FORCE_STATIC_LIB = 1
 FORCE_USE_PIC = 1
 
 include $(topsrcdir)/config/rules.mk
 
 DEFINES		+= -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
 
+ifeq ($(OS_ARCH),WINCE)
+DEFINES     += -D__STDC__ -DDBM_REOPEN_ON_FLUSH
+endif
+
 ifeq ($(OS_ARCH),AIX)
 OS_LIBS		+= -lc_r
 endif