diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 4bc144272c..2d3aa7ebcb 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -342,7 +342,7 @@ bool wxGetHostName(char *buf, int sz) // we're using uname() which is POSIX instead of less standard sysinfo() #if defined(HAVE_UNAME) - utsname uts; + struct utsname uts; bool ok = uname(&uts) != -1; if ( ok ) {