From: Nikos Mavrogiannopoulos Date: Mon, 5 Sep 2016 07:41:30 +0000 (+0200) Subject: tests: corrected detection of 64-bit systems in softhsm.h X-Git-Tag: gnutls_3_5_4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf56e3ce88f61d4344389c9b6bc44ddf28ea1ae8;p=thirdparty%2Fgnutls.git tests: corrected detection of 64-bit systems in softhsm.h --- diff --git a/tests/pkcs11/softhsm.h b/tests/pkcs11/softhsm.h index bd94bd8526..725d29efdb 100644 --- a/tests/pkcs11/softhsm.h +++ b/tests/pkcs11/softhsm.h @@ -50,13 +50,13 @@ inline static const char *softhsm_lib(void) { const char *lib; - if (sizeof(int) == 8 && access(LIB1, R_OK) == 0) { + if (sizeof(long) == 8 && access(LIB1, R_OK) == 0) { lib = LIB1; } else if (access(LIB2, R_OK) == 0) { lib = LIB2; } else if (access(LIB3, R_OK) == 0) { lib = LIB3; - } else if (sizeof(int) == 8 && access(LIB4, R_OK) == 0) { + } else if (sizeof(long) == 8 && access(LIB4, R_OK) == 0) { lib = LIB4; } else { fprintf(stderr, "cannot find softhsm module\n");