File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,13 @@ if (NOT ENABLE_ICU STREQUAL OFF)
398
398
endif ()
399
399
endif ()
400
400
401
+ CHECK_STRUCT_HAS_MEMBER ("struct sockaddr_storage" ss_family "sys/socket.h" MONGOC_HAVE_SS_FAMILY )
402
+ if (NOT MONGOC_HAVE_SS_FAMILY )
403
+ set (MONGOC_HAVE_SS_FAMILY 0 )
404
+ else ()
405
+ set (MONGOC_HAVE_SS_FAMILY 1 )
406
+ endif ()
407
+
401
408
configure_file (
402
409
"${PROJECT_SOURCE_DIR} /src/mongoc/mongoc-config.h.in"
403
410
"${PROJECT_BINARY_DIR} /src/mongoc/mongoc-config.h"
Original file line number Diff line number Diff line change 370
370
# undef MONGOC_ENABLE_ICU
371
371
#endif
372
372
373
+ /*
374
+ * Set if struct sockaddr_storage has __ss_family (instead of ss_family)
375
+ */
376
+
377
+ #define MONGOC_HAVE_SS_FAMILY @MONGOC_HAVE_SS_FAMILY@
378
+
379
+ #if MONGOC_HAVE_SS_FAMILY != 1
380
+ # undef MONGOC_HAVE_SS_FAMILY
381
+ #endif
373
382
374
383
/*
375
384
* NOTICE:
Original file line number Diff line number Diff line change 38
38
#include <sys/un.h>
39
39
#endif
40
40
41
- #if defined(_AIX ) && !defined(HAVE_SA_SS_FAMILY )
41
+ #if defined(_AIX ) && !defined(MONGOC_HAVE_SS_FAMILY )
42
42
# define ss_family __ss_family
43
43
#endif
44
44
You can’t perform that action at this time.
0 commit comments