#include <time.h>
#include <math.h>
+#ifdef HAVE_SYS_UTSNAME_H
+#include <sys/utsname.h>
+#endif
#include "wine/library.h"
#include "wine/debug.h"
return wine_get_build_id();
}
+/*********************************************************************
+ * wine_get_host_version (NTDLL.@)
+ */
+void CDECL NTDLL_wine_get_host_version( const char **sysname, const char **release )
+{
+#ifdef HAVE_SYS_UTSNAME_H
+ static struct utsname buf;
+ static int init_done;
+
+ if (!init_done)
+ {
+ uname( &buf );
+ init_done = 1;
+ }
+ if (sysname) *sysname = buf.sysname;
+ if (release) *release = buf.release;
+#else
+ if (sysname) *sysname = "";
+ if (release) *release = "";
+#endif
+}
+
/*********************************************************************
* abs (NTDLL.@)
*/
# Version
@ cdecl wine_get_version() NTDLL_wine_get_version
@ cdecl wine_get_build_id() NTDLL_wine_get_build_id
+@ cdecl wine_get_host_version(ptr ptr) NTDLL_wine_get_host_version
# Codepages
@ cdecl __wine_init_codepages(ptr ptr ptr)
/* Define to 1 if you have the <sys/user.h> header file. */
#undef HAVE_SYS_USER_H
+/* Define to 1 if you have the <sys/utsname.h> header file. */
+#undef HAVE_SYS_UTSNAME_H
+
/* Define to 1 if you have the <sys/vfs.h> header file. */
#undef HAVE_SYS_VFS_H