diff options
| -rw-r--r-- | libglusterfs/src/common-utils.c | 4 | ||||
| -rw-r--r-- | rpc/rpc-lib/src/rpc-transport.h | 4 | ||||
| -rw-r--r-- | xlators/nfs/lib/src/rpc-socket.c | 4 | 
3 files changed, 12 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 7cb389ba35d..29af725a07a 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -49,6 +49,10 @@  #include "globals.h"  #include "md5.h" +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif /* AI_ADDRCONFIG */ +  typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size);  typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size); diff --git a/rpc/rpc-lib/src/rpc-transport.h b/rpc/rpc-lib/src/rpc-transport.h index 59bec99fd4e..3161ec9b04a 100644 --- a/rpc/rpc-lib/src/rpc-transport.h +++ b/rpc/rpc-lib/src/rpc-transport.h @@ -40,6 +40,10 @@  #define MAX_IOVEC 16  #endif +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif /* AI_ADDRCONFIG */ +  /* Given the 4-byte fragment header, returns non-zero if this fragment   * is the last fragment for the RPC record being assemebled.   * RPC Record marking standard defines a 32 bit value as the fragment diff --git a/xlators/nfs/lib/src/rpc-socket.c b/xlators/nfs/lib/src/rpc-socket.c index ec56f3fc49e..3d18a3c48c9 100644 --- a/xlators/nfs/lib/src/rpc-socket.c +++ b/xlators/nfs/lib/src/rpc-socket.c @@ -37,6 +37,10 @@  #include <netinet/in.h>  #include <netinet/tcp.h> +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif /* AI_ADDRCONFIG */ +  static int  nfs_rpcsvc_socket_server_get_local_socket (int addrfam, char *listenhost,                                             uint16_t listenport,  | 
