Import of pkgsrc-2014Q1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
$NetBSD: patch-src_libcollectclient_network__buffer.c,v 1.1 2014/02/17 11:21:55 fhajny Exp $
|
||||
|
||||
Need the workaround on at least SunOS too.
|
||||
--- src/libcollectdclient/network_buffer.c.orig 2014-01-26 08:09:14.868392118 +0000
|
||||
+++ src/libcollectdclient/network_buffer.c
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#if HAVE_LIBGCRYPT
|
||||
# include <pthread.h>
|
||||
-# if defined __APPLE__
|
||||
+# if defined(__APPLE__) || defined(__sun)
|
||||
/* default xcode compiler throws warnings even when deprecated functionality
|
||||
* is not used. -Werror breaks the build because of erroneous warnings.
|
||||
* http://stackoverflow.com/questions/10556299/compiler-warnings-with-libgcrypt-v1-5-0/12830209#12830209
|
||||
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
# define GCRYPT_NO_DEPRECATED
|
||||
# include <gcrypt.h>
|
||||
-# if defined __APPLE__
|
||||
+# if defined(__APPLE__) || defined(__sun)
|
||||
/* Re enable deprecation warnings */
|
||||
# pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
||||
# endif
|
||||
Reference in New Issue
Block a user