This typedef isn't needed in maxminddb.h since sa_family_t isn't part of this library's public API. Moreover, it can conflict with typedefs in the headers of other libraries. Move the typedef from maxminddb.h to maxminddb.c, where sa_family_t is used.
This change makes it possible to build Zeek with libmaxminddb on Windows using MSVC, something that currently fails because it depends on libunistd and that also defines sa_family_t.
This typedef isn't needed in maxminddb.h since sa_family_t isn't part of this library's public API. Moreover, it can conflict with typedefs in the headers of other libraries. Move the typedef from maxminddb.h to maxminddb.c, where sa_family_t is used.
This change makes it possible to build Zeek with libmaxminddb on Windows using MSVC, something that currently fails because it depends on libunistd and that also defines sa_family_t.