]> granicus.if.org Git - check/commitdiff
libcompat.h: Correct HAVE_SETENV
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:20 +0000 (03:04 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:20 +0000 (03:04 +0000)
The configure.ac script will set HAVE_DECL_SETENV if setenv exists.
This must not have been working, as no setenv tests must have
been executing.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@941 64e312b2-a51f-0410-8e61-82d0ca0eb02a

lib/libcompat.h

index c07c8e1532239e37ada6614a6792cdf5a198687c..76734d1a407d18ca06434db54a641f46f4834888 100644 (file)
@@ -125,7 +125,7 @@ int setenv (const char *name, const char *value, int overwrite);
 #endif /* !HAVE_DECL_SETENV */
 
 /* our setenv implementation is currently broken */
-#if !HAVE_SETENV
+#if !HAVE_DECL_SETENV
 #define HAVE_WORKING_SETENV 0
 #else
 #define HAVE_WORKING_SETENV 1