Update utsname to use proper compatible interface to avoid API issues.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@123 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo
2008-06-03 21:20:18 +00:00
parent 684f787474
commit 691d2bd733
2 changed files with 10 additions and 1 deletions
+7
View File
@@ -32,6 +32,7 @@
#include <sys/debug.h>
#include <sys/proc.h>
#include <sys/kstat.h>
#include <sys/utsname.h>
#include <linux/kmod.h>
#ifdef DEBUG_SUBSYSTEM
@@ -94,6 +95,12 @@ ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result)
}
EXPORT_SYMBOL(ddi_strtoul);
struct new_utsname *__utsname(void)
{
return init_utsname();
}
EXPORT_SYMBOL(__utsname);
static int
set_hostid(void)
{