UnixOperatingSystem.st
changeset 8618 b78c623be1f7
parent 8601 bf2b973a9a0e
child 8672 f93733514fec
--- a/UnixOperatingSystem.st	Fri Oct 01 09:57:52 2004 +0200
+++ b/UnixOperatingSystem.st	Fri Oct 01 21:50:42 2004 +0200
@@ -76,6 +76,13 @@
 #endif
 
 #ifdef LINUX
+
+/*
+ * please think of a solution to this -
+ * can it be solved without dynamic linking of librt.so ?
+ */ 
+# define NO_CLOCK_GETTIME
+
 # define __xxUSE_GNU      /* new */
 # undef HAS_UTS_DOMAINNAME
 # define NET_IF_SUPPORT
@@ -8096,7 +8103,7 @@
     |seconds micros error|
 
 %{
-#if defined(_POSIX_MONOTONIC_CLOCK)
+#if defined(_POSIX_MONOTONIC_CLOCK) && !defined(NO_CLOCK_GETTIME)
     struct timespec ts;
     static int has_clock_gettime = 1;
 
@@ -8164,7 +8171,7 @@
 
     long t = 0;
 
-#if defined(_POSIX_MONOTONIC_CLOCK)
+#if defined(_POSIX_MONOTONIC_CLOCK) && !defined(NO_CLOCK_GETTIME)
     static has_clock_gettime = 1;
     struct timespec ts;
 
@@ -12267,7 +12274,7 @@
 !UnixOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.218 2004-09-28 18:29:19 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.219 2004-10-01 19:50:42 cg Exp $'
 ! !
 
 UnixOperatingSystem initialize!