From: Peter Verthez Date: Sat, 28 Sep 2002 17:48:46 +0000 (+0000) Subject: Portability: should return success if iconv is not glibc. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=6881b1278a70a1db35cc60f7edec97a4418080ee;p=gedcom-parse.git Portability: should return success if iconv is not glibc. --- diff --git a/t/src/pathtest.c b/t/src/pathtest.c index 0208b28..8804124 100644 --- a/t/src/pathtest.c +++ b/t/src/pathtest.c @@ -23,15 +23,17 @@ #include #include +#include "config.h" #include "gedcom.h" int check_gconv_path() { +#ifdef USE_GLIBC_ICONV char* path = getenv("GCONV_PATH"); if (path == NULL || strstr(path, PKGDATADIR) == NULL) return 1; - else - return 0; +#endif + return 0; } int main(int argc, char* argv[])