Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / fileio / tngio.cpp
index 20932d54c37627bcd7e91c4f145d2701f3058619..1303872d3d8364a0ee2a3405b1efc82a2d0c9ee8 100644 (file)
 #include "tng/tng_io.h"
 #endif
 
+#include "gromacs/fileio/gmxfio.h"
 #include "gromacs/legacyheaders/copyrite.h"
 #include "gromacs/legacyheaders/types/ifunc.h"
-
-#include "gromacs/fileio/gmxfio.h"
 #include "gromacs/math/units.h"
 #include "gromacs/math/utilities.h"
 #include "gromacs/topology/topology.h"
@@ -150,7 +149,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))
         {