Prior to glibc 2.2.2, unsetenv() was prototyped as returning void, as was
this version. However, check's unit tests expect unsetenv to return
an integer. On systems where the override version of unsetenv is used,
check would not compile.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@643
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
#endif /* !HAVE_DECL_STRSIGNAL */
#if !HAVE_DECL_UNSETENV
-void unsetenv (const char *name);
+int unsetenv (const char *name);
#endif /* !HAVE_DECL_UNSETENV */
/* silence warnings about an empty library */
#include "libcompat.h"
-void
+int
unsetenv (const char *name CK_ATTRIBUTE_UNUSED)
{
assert (0);
+ return 0;
}