Fix MingW build
[alexxy/gromacs.git] / src / external / thread_mpi / src / pthreads.c
index 8da1df67514b046c5195364fb602500fa4019dde..3aee9c52e55c20a7520784c136a51c23ccb128c8 100644 (file)
@@ -196,6 +196,9 @@ struct tMPI_Thread_starter
 };
 
 /* the thread_starter function that sets the thread id */
+#ifdef __MINGW32__
+__attribute__((force_align_arg_pointer))
+#endif
 static void *tMPI_Thread_starter(void *arg)
 {
     struct tMPI_Thread_starter *starter = (struct tMPI_Thread_starter *)arg;