Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / fileio / tngio.cpp
index 20932d54c37627bcd7e91c4f145d2701f3058619..b677014564098d9ab2c65d5d4cf6a220ea1ec600 100644 (file)
@@ -150,7 +150,7 @@ void gmx_tng_open(const char       *filename,
 //             tng_last_program_name_set(*tng, programInfo);
 //         }
 
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H) && !defined(__MINGW32__)
         char username[256];
         if (!getlogin_r(username, 256))
         {