56 lines
2.8 KiB
Diff
56 lines
2.8 KiB
Diff
diff -ru orig/dosbox-0.74/config.sub dosbox-0.74/config.sub
|
|
--- orig/dosbox-0.74/config.sub 2010-05-10 13:43:54.000000000 -0400
|
|
+++ dosbox-0.74/config.sub 2011-02-01 15:00:39.000000000 -0500
|
|
@@ -1298,7 +1298,7 @@
|
|
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
|
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
+ | -udi* | -eabi* | -androideabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
| -chorusos* | -chorusrdb* | -cegcc* \
|
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
|
|
|
diff -ru orig/dosbox-0.74/src/dos/drive_local.cpp dosbox-0.74/src/dos/drive_local.cpp
|
|
--- orig/dosbox-0.74/src/dos/drive_local.cpp 2010-05-10 13:43:54.000000000 -0400
|
|
+++ dosbox-0.74/src/dos/drive_local.cpp 2010-11-26 07:31:54.000000000 -0500
|
|
@@ -273,7 +273,7 @@
|
|
|
|
find_size=(Bit32u) stat_block.st_size;
|
|
struct tm *time;
|
|
- if((time=localtime(&stat_block.st_mtime))!=0){
|
|
+ if((time=localtime((const time_t *) &stat_block.st_mtime))!=0){
|
|
find_date=DOS_PackDate((Bit16u)(time->tm_year+1900),(Bit16u)(time->tm_mon+1),(Bit16u)time->tm_mday);
|
|
find_time=DOS_PackTime((Bit16u)time->tm_hour,(Bit16u)time->tm_min,(Bit16u)time->tm_sec);
|
|
} else {
|
|
@@ -393,7 +393,7 @@
|
|
if(stat(newname,&temp_stat)!=0) return false;
|
|
/* Convert the stat to a FileStat */
|
|
struct tm *time;
|
|
- if((time=localtime(&temp_stat.st_mtime))!=0) {
|
|
+ if((time=localtime((const time_t *) &temp_stat.st_mtime))!=0) {
|
|
stat_block->time=DOS_PackTime((Bit16u)time->tm_hour,(Bit16u)time->tm_min,(Bit16u)time->tm_sec);
|
|
stat_block->date=DOS_PackDate((Bit16u)(time->tm_year+1900),(Bit16u)(time->tm_mon+1),(Bit16u)time->tm_mday);
|
|
} else {
|
|
@@ -532,7 +532,7 @@
|
|
struct stat temp_stat;
|
|
fstat(fileno(fhandle),&temp_stat);
|
|
struct tm * ltime;
|
|
- if((ltime=localtime(&temp_stat.st_mtime))!=0) {
|
|
+ if((ltime=localtime((const time_t *) &temp_stat.st_mtime))!=0) {
|
|
time=DOS_PackTime((Bit16u)ltime->tm_hour,(Bit16u)ltime->tm_min,(Bit16u)ltime->tm_sec);
|
|
date=DOS_PackDate((Bit16u)(ltime->tm_year+1900),(Bit16u)(ltime->tm_mon+1),(Bit16u)ltime->tm_mday);
|
|
} else {
|
|
diff -ru orig/dosbox-0.74/src/gui/sdlmain.cpp dosbox-0.74/src/gui/sdlmain.cpp
|
|
--- orig/dosbox-0.74/src/gui/sdlmain.cpp 2010-05-10 13:43:54.000000000 -0400
|
|
+++ dosbox-0.74/src/gui/sdlmain.cpp 2011-02-01 15:39:31.000000000 -0500
|
|
@@ -1743,8 +1743,7 @@
|
|
#if SDL_VERSION_ATLEAST(1, 2, 14)
|
|
putenv(const_cast<char*>("SDL_DISABLE_LOCK_KEYS=1"));
|
|
#endif
|
|
- if ( SDL_Init( SDL_INIT_AUDIO|SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_CDROM
|
|
- |SDL_INIT_NOPARACHUTE
|
|
+ if ( SDL_Init( SDL_INIT_AUDIO|SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_NOPARACHUTE
|
|
) < 0 ) E_Exit("Can't init SDL %s",SDL_GetError());
|
|
sdl.inited = true;
|