[Top][All Lists]
[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: |
Mon, 01 Aug 2005 16:09:15 -0400 |
Index: mldonkey/src/config/unix/os_stubs_c.c
diff -u mldonkey/src/config/unix/os_stubs_c.c:1.6
mldonkey/src/config/unix/os_stubs_c.c:1.7
--- mldonkey/src/config/unix/os_stubs_c.c:1.6 Tue Jul 26 21:35:11 2005
+++ mldonkey/src/config/unix/os_stubs_c.c Mon Aug 1 20:09:13 2005
@@ -218,3 +218,16 @@
raise_constant(*(value *)caml_named_value("not supported"));
#endif
}
+
+int glibc_version(void)
+{
+ CAMLparam0 ();
+ CAMLlocal1 (v);
+#ifdef HAVE_GNU_LIBC_VERSION_H
+# include <gnu/libc-version.h>
+ v = copy_string (gnu_get_libc_version());
+ CAMLreturn (v);
+#else
+ raise_constant(*(value *)caml_named_value("not supported"));
+#endif
+}
- [Mldonkey-commits] Changes to mldonkey/src/config/unix/os_stubs_c.c,
mldonkey-commits <=