X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fshowmount%2Fshowmount.c;h=8fb58a2c2e1c13c6936a8cdfea9b64b785d56ece;hp=1ff3fa11c620ab5e1d9016331a32df50e961ef2d;hb=3419e37500dfd19cb2c246260dbd2bc0ee4704d4;hpb=ac84b80afc13d5a96813e678ad5c86c6036f022e diff --git a/utils/showmount/showmount.c b/utils/showmount/showmount.c index 1ff3fa1..8fb58a2 100644 --- a/utils/showmount/showmount.c +++ b/utils/showmount/showmount.c @@ -13,7 +13,9 @@ * GNU General Public License for more details. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif #include #include @@ -154,7 +156,7 @@ char **argv; break; } - if (inet_aton(hostname, &server_addr.sin_addr.s_addr)) { + if (inet_aton(hostname, &server_addr.sin_addr)) { server_addr.sin_family = AF_INET; } else {