From: Roy Marples Date: Tue, 26 Jul 2016 21:11:32 +0000 (+0000) Subject: Solaris doesn't really have a machine/arch afaik. X-Git-Tag: v6.11.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fda09bc2b358eb76c1058604ffbf61d0fcc759e;p=thirdparty%2Fdhcpcd.git Solaris doesn't really have a machine/arch afaik. --- diff --git a/if-sun.c b/if-sun.c index 046a1cd4..00c83987 100644 --- a/if-sun.c +++ b/if-sun.c @@ -188,13 +188,12 @@ if_vimaster(__unused const struct dhcpcd_ctx *ctx, __unused const char *ifname) } int -if_machinearch(char *str, size_t len) +if_machinearch(__unused char *str, __unused size_t len) { - UNUSED(str); - UNUSED(len); - errno = ENOTSUP; - return -1; + /* There is no extra data really. + * isainfo -v does return amd64, but also i386. */ + return 0; } struct linkwalk {