Index: configure
===================================================================
--- configure	(revision 29900)
+++ configure	(working copy)
@@ -985,6 +985,7 @@
 		;;
 	mint*)
 		DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE"
+		LIBS="$LIBS -lsocket"
 		;;
 	amigaos*)
 		# TODO: anything to be added here?
@@ -1057,7 +1058,7 @@
 			type_2_byte='short'
 			type_4_byte='long'
 			_ranlib=m68k-atari-mint-ranlib
-			_ar=m68k-atari-mint-ar
+			_ar="m68k-atari-mint-ar cru"
 			;;
 		i586-mingw32msvc)
 			echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
Index: sound/fmopl.cpp
===================================================================
--- sound/fmopl.cpp	(revision 29900)
+++ sound/fmopl.cpp	(working copy)
@@ -33,7 +33,7 @@
 
 #include "sound/fmopl.h"
 
-#if defined (_WIN32_WCE) || defined (__SYMBIAN32__) || defined(PALMOS_MODE) || defined(__GP32__) || defined(GP2X) || defined (__MAEMO__) || defined(__DS__)
+#if defined (_WIN32_WCE) || defined (__SYMBIAN32__) || defined(PALMOS_MODE) || defined(__GP32__) || defined(GP2X) || defined (__MAEMO__) || defined(__DS__) || defined (__MINT__)
 #include "common/config-manager.h"
 #endif
 
@@ -1171,7 +1171,7 @@
 	// We need to emulate one YM3812 chip
 	int env_bits = FMOPL_ENV_BITS_HQ;
 	int eg_ent = FMOPL_EG_ENT_HQ;
-#if defined (_WIN32_WCE) || defined(__SYMBIAN32__) || defined(PALMOS_MODE) || defined(__GP32__) || defined (GP2X) || defined(__MAEMO__) || defined(__DS__)
+#if defined (_WIN32_WCE) || defined(__SYMBIAN32__) || defined(PALMOS_MODE) || defined(__GP32__) || defined (GP2X) || defined(__MAEMO__) || defined(__DS__) || defined (__MINT__)
 	if (ConfMan.hasKey("FM_high_quality") && ConfMan.getBool("FM_high_quality")) {
 		env_bits = FMOPL_ENV_BITS_HQ;
 		eg_ent = FMOPL_EG_ENT_HQ;
Index: graphics/primitives.cpp
===================================================================
--- graphics/primitives.cpp	(revision 29900)
+++ graphics/primitives.cpp	(working copy)
@@ -26,7 +26,7 @@
 
 namespace Graphics {
 
-#ifdef MACOSX
+#if defined MACOSX || defined __MINT__
 // Older versions of Mac OS X didn't supply a sqrtf function. To ensure
 // binary compatibility, we force using sqrt instead of sqrtf (the only
 // potential drawback is that it might be a little bit slower).
