From 7b95ac31c1645cba1de7abdf4ad725a1846debea 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/branches/1.4@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/src/rrd_client.c b/program/src/rrd_client.c index e7c227b8..608eb881 100644 --- a/program/src/rrd_client.c +++ b/program/src/rrd_client.c @@ -831,7 +831,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