mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/config/unix/os_stubs_c.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/config/unix/os_stubs_c.c
Date: Thu, 08 Sep 2005 08:44:55 -0400

Index: mldonkey/src/config/unix/os_stubs_c.c
diff -u mldonkey/src/config/unix/os_stubs_c.c:1.10 
mldonkey/src/config/unix/os_stubs_c.c:1.11
--- mldonkey/src/config/unix/os_stubs_c.c:1.10  Fri Sep  2 22:39:59 2005
+++ mldonkey/src/config/unix/os_stubs_c.c       Thu Sep  8 12:44:53 2005
@@ -125,3 +125,17 @@
   raise_constant(*(value *)caml_named_value("not supported"));
 #endif
 }
+
+#ifdef HAVE_SYS_UTSNAME_H
+#include <sys/utsname.h>
+void os_uname(char buf[]) {
+       struct utsname uts;
+  uname(&uts);
+       sprintf(buf, "%s %s %s %s %s\0", 
+   uts.sysname, uts.nodename, uts.release, uts.version, uts.machine);
+}
+#else
+void os_uname(char buf[]) {
+// Do nothing to buf
+}
+#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]