Fixed a link problem - uname() should be extern C when used in C++ code.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn 2004-11-17 01:26:11 +00:00
parent 4d13b0dee0
commit ec1cf916a3
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,10 @@
#define _SYS_NAMELEN 256
#ifdef __cplusplus
extern "C" {
#endif
struct utsname {
char sysname[_SYS_NAMELEN]; /* Name of the OS */
char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */
@ -19,5 +23,9 @@ struct utsname {
int uname(struct utsname *);
#ifdef __cplusplus
}
#endif
#endif