From: oetiker Date: Sun, 12 Aug 2012 20:49:17 +0000 (+0000) Subject: openbsd does not know EPROTO it seems X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2f28002d6613be5c03edb76958b6aa6b300c8a80;p=rrdtool.git openbsd does not know EPROTO it seems git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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);