#include "smalloc.h"
#include "gmx_fatal.h"
#include "macros.h"
+#include "main.h"
#include "string2.h"
#include "gromacs/fileio/futil.h"
#ifdef HAVE_PWD_H
uid = getuid();
pw = getpwuid(uid);
- gh = gethostname(buf, 255);
+ gh = gmx_gethostname(buf, 255);
/* pw returns null on error (e.g. compute nodes lack /etc/passwd) */
user = pw ? pw->pw_name : unk;
#else