[#include "src/have.h"]
)
+AC_CHECK_TYPES([struct sockaddr_storage], ,AC_MSG_ERROR([System must support struct sockaddr_storage.]),
+ [#include "src/have.h"]
+)
+
dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([asprintf fchmod fork get_current_dir_name gettimeofday random select strdup strerror time usleep],
}
copy->from = (meshlink_node_t*)e->from;
copy->to = (meshlink_node_t*)e->to;
-#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
copy->address = e->address.storage;
-#endif
copy->options = e->options;
copy->weight = e->weight;
*p++ = copy;
// owned by meshlink and should not be
// deallocated. Node contents may be
// changed by meshlink.
-#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
struct sockaddr_storage address;///< The address information associated
-#endif
// with this edge.
uint32_t options; ///< Edge options. @TODO what are edge options?
int weight; ///< Weight assigned to this edge.
struct sockaddr_in in;
struct sockaddr_in6 in6;
struct sockaddr_unknown unknown;
-#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
struct sockaddr_storage storage;
-#endif
} sockaddr_t;
#endif // SOCKADDR_H