summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb5609c)
raw | patch | inline | side by side (parent: cb5609c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 17 Apr 2009 23:02:59 +0000 (01:02 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 17 Apr 2009 23:02:59 +0000 (01:02 +0200) |
And fall back to EPROTO or EINVAL if it is not, e. g. under FreeBSD.
src/libcollectdclient/client.c | patch | blob | history |
index 684fa39baabc8afb5069cb2616eea26bdefcc2c5..f62994c6d02b5abd4101f15fb8511c508d21b04f 100644 (file)
# define NI_MAXHOST 1025
#endif
+/* OpenBSD doesn't have EPROTO, FreeBSD doesn't have EILSEQ. Oh what joy! */
+#ifndef EILSEQ
+# ifdef EPROTO
+# define EILSEQ EPROTO
+# else
+# define EILSEQ EINVAL
+# endif
+#endif
+
/* Secure/static macros. They work like `strcpy' and `strcat', but assure null
* termination. They work for static buffers only, because they use `sizeof'.
* The `SSTRCATF' combines the functionality of `snprintf' and `strcat' which