mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Fix build with USE_DRM=1 #704

Closed cmitu closed 2 years ago

cmitu commented 2 years ago

USE_DRM needs a memset declaration, include string.h to get it.

Otherwise, the build fails with:

make USE_DRM=1
....
Compiling obj/fe_present.o...
src/fe_present.cpp: In member function ‘void FePresent::init_monitors()’:
src/fe_present.cpp:273:5: error: ‘memset’ was not declared in this scope
     memset( &mode_info, 0, sizeof( drmModeModeInfo ));
     ^~~~~~
...