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:
parent
4d13b0dee0
commit
ec1cf916a3
@ -9,6 +9,10 @@
|
|||||||
|
|
||||||
#define _SYS_NAMELEN 256
|
#define _SYS_NAMELEN 256
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct utsname {
|
struct utsname {
|
||||||
char sysname[_SYS_NAMELEN]; /* Name of the OS */
|
char sysname[_SYS_NAMELEN]; /* Name of the OS */
|
||||||
char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */
|
char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */
|
||||||
@ -19,5 +23,9 @@ struct utsname {
|
|||||||
|
|
||||||
int uname(struct utsname *);
|
int uname(struct utsname *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user