From e35988e66997fd9b12c11fd8fa4abdd14ab5b38f Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Mon, 21 Aug 2017 18:09:39 +0200 Subject: [PATCH] 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 --- SoObjects/SOGo/NSData+Crypto.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SoObjects/SOGo/NSData+Crypto.m b/SoObjects/SOGo/NSData+Crypto.m index 5bf3c515e..f2aeb8745 100644 --- a/SoObjects/SOGo/NSData+Crypto.m +++ b/SoObjects/SOGo/NSData+Crypto.m @@ -23,16 +23,11 @@ * Boston, MA 02111-1307, USA. */ -#if !defined(__OpenBSD__) && !defined(__FreeBSD__) -#include -#endif +#define _XOPEN_SOURCE 600 #include #include -#define _XOPEN_SOURCE 1 -#include - #if defined(HAVE_GNUTLS) #include #include