VOGONS


Missing Includes

Topic actions

First post, by codejone

User metadata
Rank Newbie
Rank
Newbie

Hi, I was compiling dosbox-0.72 on debian with gcc, with "./configure --enable-debug=heavy", from source tar.gz in the downloads section

my kernel version:
Linux version 2.6.26 (2.6.26) (root@pornshell2) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #1 Tue Mar 3 12:38:10 EST 2009

and I got some errors like this:

gameblaster.cpp: In function ‘void saa1099_update(int, INT16**, int)’:
gameblaster.cpp:195: error: ‘memset’ was not declared in this scope
gameblaster.cpp: In constructor ‘CMS::CMS(Section*)’:
gameblaster.cpp:443: error: ‘memset’ was not declared in this scope

to fix this I added to add an include for string.h and stdlib.h in a few files, I have included a patch for the src directory of the tar.gz and included it in this post

EDIT: I coudnt get the file attach to work so here is a direct link

http://nxsh.org/~codejone/dosbox.patch