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:
parent
902c72f6bb
commit
365eee4a8b
|
@ -141,6 +141,10 @@ _EXPORT int getpassword(char * pwd, size_t length)
|
|||
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 {
|
||||
char sysname[32];
|
||||
|
@ -162,3 +166,5 @@ _EXPORT int uname(struct utsname *name)
|
|||
strcpy(name->machine, "BePC");
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
#endif // !defined(__HAIKU__)
|
||||
|
|
Loading…
Reference in New Issue