]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/libloc.c
Make package compile on Mac OS X
[people/ms/libloc.git] / src / libloc.c
index da21d6fc4d03ccff4988f25ad902bae1ea322bf8..0f2227994284e9a3ce2b2a24d8559cdd905df8ff 100644 (file)
@@ -26,6 +26,7 @@
 #include <ctype.h>
 
 #include <loc/libloc.h>
+#include <loc/compat.h>
 #include <loc/private.h>
 
 struct loc_ctx {
@@ -131,7 +132,7 @@ LOC_EXPORT void loc_set_log_priority(struct loc_ctx* ctx, int priority) {
 }
 
 LOC_EXPORT int loc_parse_address(struct loc_ctx* ctx, const char* string, struct in6_addr* address) {
-       DEBUG(ctx, "Paring IP address %s\n", string);
+       DEBUG(ctx, "Parsing IP address %s\n", string);
 
        // Try parsing this as an IPv6 address
        int r = inet_pton(AF_INET6, string, address);