From 2a5dc89618904fdcbc2bd4db19ab3ce1be8fcd7c Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 12 Aug 2012 20:49:17 +0000 Subject: [PATCH] openbsd does not know EPROTO it seems git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rrd_client.c b/src/rrd_client.c index 5481ba3..3347b82 100644 --- a/src/rrd_client.c +++ b/src/rrd_client.c @@ -1495,7 +1495,11 @@ int rrdc_stats_get (rrdc_stats_t **ret_stats) /* {{{ */ response_free (res); if (head == NULL) +#ifdef EPROTO return (EPROTO); +#else + return (EINVAL); +#endif *ret_stats = head; return (0); -- 2.30.2