Manually sort some includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / imd / imd.c
index 2e8cbcece8b67194f923e556f0954eb8c5aecd0c..7c6585260e25f5c75927454e674357403846071a 100644 (file)
  *
  * \ingroup module_imd
  */
+#include "gmxpre.h"
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
+#include "imd.h"
 
+#include <errno.h>
 #include <string.h>
 
+#include "config.h"
+
 #ifdef GMX_NATIVE_WINDOWS
 #include <windows.h>
 #else
 #include <unistd.h>
 #endif
 
-#include "imd.h"
-#include "imdsocket.h"
-#include "gromacs/utility/smalloc.h"
-#include "network.h"
-#include "mdrun.h"
-#include "sighandler.h"
-#include "gmx_ga2la.h"
-#include "xvgr.h"
-#include "gromacs/mdlib/groupcoord.h"
 #include "gromacs/fileio/confio.h"
-#include "mtop_util.h"
-#include "names.h"
+#include "gromacs/fileio/xvgr.h"
+#include "gromacs/imd/imdsocket.h"
+#include "gromacs/legacyheaders/gmx_ga2la.h"
+#include "gromacs/legacyheaders/mdrun.h"
+#include "gromacs/legacyheaders/names.h"
+#include "gromacs/legacyheaders/network.h"
+#include "gromacs/legacyheaders/sighandler.h"
+#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/groupcoord.h"
+#include "gromacs/pbcutil/pbc.h"
 #include "gromacs/timing/wallcycle.h"
-
-#include "gmx_fatal.h"
+#include "gromacs/topology/mtop_util.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/smalloc.h"
 
 /*! \brief How long shall we wait in seconds until we check for a connection again? */
 #define IMDLOOPWAIT 1