]> granicus.if.org Git - check/commitdiff
Do not compile set env functions without a working setenv
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 6 Oct 2013 21:17:35 +0000 (21:17 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 6 Oct 2013 21:17:35 +0000 (21:17 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@834 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_check_log.c

index f7db847de798df24bb19a89f70e82880965f5da7..7c235575d0e3dddc18c2c719aebd1587e14bb232 100644 (file)
@@ -6,7 +6,7 @@
 #include <check.h>
 #include "check_check.h"
 
-
+#if HAVE_WORKING_SETENV
 /* save environment variable's value and set new value */
 static int save_set_env(const char *name, const char *value,
                         const char **old_value)
@@ -27,6 +27,7 @@ static int restore_env(const char *name, const char *old_value)
   }
   return res;
 }
+#endif /* HAVE_WORKING_SETENV */
 
 START_TEST(test_set_log)
 {