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
pull/238/head
Thomas Merkel 2017-08-21 18:09:39 +02:00
parent 4d271a6d85
commit e35988e669
No known key found for this signature in database
GPG Key ID: 12AE4593D7A63833
1 changed files with 1 additions and 6 deletions

View File

@ -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>