Code

openbsd does not know EPROTO it seems
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 12 Aug 2012 20:49:17 +0000 (20:49 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 12 Aug 2012 20:49:17 +0000 (20:49 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_client.c

index e7c227b8564338c1d74ab2f29c8bd033d459944d..608eb8810113180b7cc409c711a498b8cb47189e 100644 (file)
@@ -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);