Fix MingW build
[alexxy/gromacs.git] / src / gromacs / fileio / tngio.cpp
index fb8b8f6dcb39e15966351fcfdca1e111be1a90d9..35c94c2eeb6e2766a4e34d74b9e3040d6cbfcd42 100644 (file)
@@ -147,7 +147,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))
         {