]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/export/hostname.c
nfs-utils: Remove all uses of AI_ADDRCONFIG
[nfs-utils.git] / support / export / hostname.c
index 3c55ce7ef4bf6261c28b62f23a5f701552ee441b..efcb75cdb97260a12b2feea32949c83c1a873624 100644 (file)
 #include "sockaddr.h"
 #include "exportfs.h"
 
-#ifndef HAVE_DECL_AI_ADDRCONFIG
-#define AI_ADDRCONFIG  0
-#endif
-
 /**
  * host_ntop - generate presentation address given a sockaddr
  * @sap: pointer to socket address
@@ -170,7 +166,7 @@ host_addrinfo(const char *hostname)
 #endif
                /* don't return duplicates */
                .ai_protocol    = (int)IPPROTO_UDP,
-               .ai_flags       = AI_ADDRCONFIG | AI_CANONNAME,
+               .ai_flags       = AI_CANONNAME,
        };
        int error;