Hi all,

This bug is related to Linux, unistd.h (which I believe varies with the glibc), des.h 
and crypt().

In include/des.h:193 the crypt function is declared as:
   char *crypt(const char *buf,const char *salt);

But in my unistd.h (glibc 2.2) it is declared as:
   extern char *crypt (__const char *__key, __const char *__salt) __THROW;


The differing throw spec causes compilation to fail on files which include both ssl.h 
and unistd.h.

Is there a reason to prototype crypt instead of including unistd.h to prototype crypt?

If you don't want the extra include you could guard the prototype with an #ifdef to 
change the prototype according to the glibc version. 


-Aaron
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to