diff --git a/src/reset_timeout.c b/src/reset_timeout.c
index 47c8da58e025558cad60da8708f95a75674d8a99..fa8c209ac8d501f261dc90d70f015a0015f77a31 100644
--- a/src/reset_timeout.c
+++ b/src/reset_timeout.c
@@ -60,18 +60,21 @@ void reset_binary_c_timeout(void)
 
 void disable_binary_c_timeout(void)
 {
-#ifdef LINUX 
-    struct itimerval value;
-    struct timeval tv;
-    tv.tv_sec=0; /* 0 disables the timer */
-    tv.tv_usec=0;
-    value.it_value=tv;
-    value.it_interval=tv;
-
-    if(setitimer(ITIMER_VIRTUAL,&value,0) == -1)
+#ifdef LINUX
+    if(TIMEOUT_SECONDS)
     {
-        Exit_binary_c_no_stardata(BINARY_C_TIMED_OUT,
-                                  "Failed to allocate virtual timer");
+        struct itimerval value;
+        struct timeval tv;
+        tv.tv_sec=0; /* 0 disables the timer */
+        tv.tv_usec=0;
+        value.it_value=tv;
+        value.it_interval=tv;
+
+        if(setitimer(ITIMER_VIRTUAL,&value,0) == -1)
+        {
+            Exit_binary_c_no_stardata(BINARY_C_TIMED_OUT,
+                                      "Failed to allocate virtual timer");
+        }
     }
-#endif
+#endif // LINUX
 }