Build failure with dietlibc
dfandrich opened this issue · comments
libtomcrypt ver. 1.18.2 fails to compile against dietlibc 0.34 on x86 Linux due to the encrypt() function in src/ciphers/multi2.c Even though it's defined as static and only used locally, the function signature doesn't match the POSIX encrypt() function so the compilation fails. Even if the blame lies at the feet of dietlibc for defining an encrypt() prototype when unistd.h isn't included (and I'm not positive it does) it's confusing at best that this standard function (with such an unfortunately generic name) is redefined another way within libtomcrypt. I suggest renaming it, both for clarity and to avoid such compile problems.