summaryrefslogtreecommitdiff
path: root/sysutils/collectd/patches/patch-src_libcollectclient_network__buffer.c
blob: b8194f2cb6a241335069a4ccdd862a85fcbc28be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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