diff options
author | dougt%meer.net <devnull@localhost> | 2005-04-29 13:33:34 +0000 |
---|---|---|
committer | dougt%meer.net <devnull@localhost> | 2005-04-29 13:33:34 +0000 |
commit | 7329aac96ce6d1463ae550889a1dbc9e0268ceb6 (patch) | |
tree | 2c066f9dc1340baedbe872f22a66d55f96ec4d58 | |
parent | 840467b147c5b419db785b116c6590bd33c512ce (diff) | |
download | nss-hg-7329aac96ce6d1463ae550889a1dbc9e0268ceb6.tar.gz |
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
-rw-r--r-- | dbm/include/mcom_db.h | 5 | ||||
-rw-r--r-- | dbm/include/winfile.h | 6 | ||||
-rw-r--r-- | dbm/src/Makefile.in | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/dbm/include/mcom_db.h b/dbm/include/mcom_db.h index dcae849f2..f379020d8 100644 --- a/dbm/include/mcom_db.h +++ b/dbm/include/mcom_db.h @@ -74,6 +74,11 @@ #ifndef _DB_H_ #define _DB_H_ + +#ifdef WINCE +#define off_t long +#endif + #ifndef macintosh #include <sys/types.h> #endif diff --git a/dbm/include/winfile.h b/dbm/include/winfile.h index 1fd54d578..36b59f721 100644 --- a/dbm/include/winfile.h +++ b/dbm/include/winfile.h @@ -31,7 +31,13 @@ typedef struct DIR_Struct { 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 diff --git a/dbm/src/Makefile.in b/dbm/src/Makefile.in index 280c944d1..8c8f2c107 100644 --- a/dbm/src/Makefile.in +++ b/dbm/src/Makefile.in @@ -69,6 +69,10 @@ 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 |