$OpenBSD$

Index: src/utils/mp_gpprof_server/libraries/gamespy/common/x360/X360Common.c
--- src/utils/mp_gpprof_server/libraries/gamespy/common/x360/X360Common.c.orig
+++ src/utils/mp_gpprof_server/libraries/gamespy/common/x360/X360Common.c
@@ -1,7 +1,7 @@
 #include "../gsCommon.h"
 #include "../gsMemory.h"
 #include "../gsDebug.h"
-#include <malloc.h>
+#include <sys/malloc.h>
 // Debug output
 #ifdef GSI_COMMON_DEBUG
 	static void DebugCallback(GSIDebugCategory theCat, GSIDebugType theType,
@@ -12,7 +12,7 @@
 		GSI_UNUSED(theLevel);
 		{
 			static char    string[256];
-			vsprintf(string, theTokenStr, theParamList); 			
+			vsprintf(string, theTokenStr, theParamList);
 			OutputDebugString(string);
 		}
 	}
@@ -35,7 +35,7 @@ void *  gsiMemManagedInit()
 		return NULL;
 	}
 	{
-		gsMemMgrCreate(gsMemMgrContext_Default, "Default",aMemoryPool, aMemoryPoolSize);	
+		gsMemMgrCreate(gsMemMgrContext_Default, "Default",aMemoryPool, aMemoryPoolSize);
 	}
 	return aMemoryPool;
 #else
@@ -58,14 +58,14 @@ void gsiMemManagedClose(void * theMemoryPool)
 	gsMemMgrDumpStats();
 	gsMemMgrDumpAllocations();
 	gsMemMgrValidateMemoryPool();
-	
+
 	#endif
 	_aligned_free(theMemoryPool);
 }
 
 
 // sample common entry point
-extern int test_main(int argc, char ** argp); 
+extern int test_main(int argc, char ** argp);
 
 
 // Common entry point
@@ -87,7 +87,4 @@ int __cdecl main(int argc, char** argp)
 
 	return ret;
 }
-
-
-
 
