Commits (2)
...@@ -331,6 +331,9 @@ ifeq ($(os),darwin) ...@@ -331,6 +331,9 @@ ifeq ($(os),darwin)
CFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION) CFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION)
LDFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION) LDFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION)
endif endif
ifeq ($(os),linux) # Linux
CFLAGS += -DNEEDS_STRLCPY
endif
# PThread-specific flags # PThread-specific flags
ifeq ($(os),linux) # Linux ifeq ($(os),linux) # Linux
......
...@@ -370,7 +370,7 @@ static JSBool js_system_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict ...@@ -370,7 +370,7 @@ static JSBool js_system_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict
#ifndef JSDOOR #ifndef JSDOOR
switch(tiny) { switch(tiny) {
case SYS_PROP_MISC: case SYS_PROP_MISC:
JS_ValueToECMAUint32(cx, *vp, &sys->cfg->sys_misc); JS_ValueToECMAUint32(cx, *vp, (uint32_t*)&sys->cfg->sys_misc);
break; break;
case SYS_PROP_OP_AVAIL: case SYS_PROP_OP_AVAIL:
if(!set_sysop_availability(sys->cfg, JSVAL_TO_BOOLEAN(*vp))) { if(!set_sysop_availability(sys->cfg, JSVAL_TO_BOOLEAN(*vp))) {
...@@ -1168,7 +1168,7 @@ js_datestr(JSContext *cx, uintN argc, jsval *arglist) ...@@ -1168,7 +1168,7 @@ js_datestr(JSContext *cx, uintN argc, jsval *arglist)
JS_SET_RVAL(cx, arglist, DOUBLE_TO_JSVAL((double)dstrtounix(sys->cfg, p))); JS_SET_RVAL(cx, arglist, DOUBLE_TO_JSVAL((double)dstrtounix(sys->cfg, p)));
return(JS_TRUE); return(JS_TRUE);
} }
JS_ValueToECMAUint32(cx,argv[0],&t); JS_ValueToECMAUint32(cx,argv[0],(uint32_t*)&t);
} }
unixtodstr(sys->cfg,t,str); unixtodstr(sys->cfg,t,str);
if((js_str = JS_NewStringCopyZ(cx, str))==NULL) if((js_str = JS_NewStringCopyZ(cx, str))==NULL)
......