summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-03-24 01:08:33 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-03-24 01:08:33 +0000
commitb2af26b13be5ac143d7c7e58ef2458b8b3103485 (patch)
tree708be0a38074ec2b410629956a8f04ed5b58c2a9 /win32/win32.h
parent8fe0a5c4e04be608dcf92965347231ca4e6d5db7 (diff)
downloadperl-b2af26b13be5ac143d7c7e58ef2458b8b3103485.tar.gz
support POSIX::uname() via win32_uname()
p4raw-id: //depot/perl@3134
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 0b8b710616..a072b875c9 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -83,6 +83,18 @@ struct tms {
long tms_cstime;
};
+#ifndef SYS_NMLN
+#define SYS_NMLN 257
+#endif
+
+struct utsname {
+ char sysname[SYS_NMLN];
+ char nodename[SYS_NMLN];
+ char release[SYS_NMLN];
+ char version[SYS_NMLN];
+ char machine[SYS_NMLN];
+};
+
#ifndef START_EXTERN_C
#undef EXTERN_C
#ifdef __cplusplus