Skip to content
Snippets Groups Projects
Commit 50356d47 authored by Ralph Seichter's avatar Ralph Seichter Committed by Stuart D. Gathman
Browse files

Fix for compilation error on macOS 10.14 (Mojave) (#31)

This change ensures that arpa/inet.h is included when building
miltermodule.c on macOS 10.14. See
https://github.com/sdgathman/pymilter/issues/30



Signed-off-by: default avatarRalph Seichter <github@seichter.de>
parent ec3fa467
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ $ python setup.py help
* published. Unfortunately I know of no good way to do this
* other than with OS-specific tests.
*/
#if defined(__FreeBSD__) || defined(__linux__) || defined(__sun__) || defined(__GLIBC__)
#if defined(__FreeBSD__) || defined(__linux__) || defined(__sun__) || defined(__GLIBC__) || (defined(__APPLE__) && defined(__MACH__))
#define HAVE_IPV6_RFC2553
#include <arpa/inet.h>
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment