Windows CE build changes. This addresses most of the outstanding Windows
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
--- 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