Fix standard visibility macro use
Expect crypt(3) to be provided by unistd.h, not the ancient crypt.h. Update _XOPEN_SOURCE for SUSv3 / POSIX.1-2001
This commit is contained in:
parent
4d271a6d85
commit
e35988e669
|
@ -23,16 +23,11 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#if !defined(__OpenBSD__) && !defined(__FreeBSD__)
|
||||
#include <crypt.h>
|
||||
#endif
|
||||
#define _XOPEN_SOURCE 600
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define _XOPEN_SOURCE 1
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(HAVE_GNUTLS)
|
||||
#include <gnutls/gnutls.h>
|
||||
#include <gnutls/crypto.h>
|
||||
|
|
Loading…
Reference in a new issue