Don't include uname() when being built for Haiku. Actually the whole

file should not be included, but if simply left out, linking libnet will
fail, complaining about a missing _h_errnop().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10956 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-01-22 17:58:32 +00:00
parent 902c72f6bb
commit 365eee4a8b
1 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,10 @@ _EXPORT int getpassword(char * pwd, size_t length)
return strlen(pwd); return strlen(pwd);
} }
// TODO: This is not a good solution. The complete compat.c should not be
// included in a libnet.so for Haiku, but if left out, _h_errnop is missing
// when linking.
#ifndef __HAIKU__
struct utsname { struct utsname {
char sysname[32]; char sysname[32];
@ -162,3 +166,5 @@ _EXPORT int uname(struct utsname *name)
strcpy(name->machine, "BePC"); strcpy(name->machine, "BePC");
return B_OK; return B_OK;
} }
#endif // !defined(__HAIKU__)