From 1e0bc1f164ce73f9feeeb14754d09072b3e9bc68 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sat, 21 Jan 2017 21:49:42 +0400 Subject: Fix compiler warnings on FreeBSD * common/compat.c: Fix "implicit declaration of function 'issetugid'" warning. On FreeBSD, it's required to define __BSD_VISIBLE to make issetugid(2) visible * common/test-message.c: Fix "implicit declaration of function 'asprintf'" by including * p11-kit/test-iter.c: Fix "format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int'" by changing format string to "%d" --- common/test-message.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/test-message.c') diff --git a/common/test-message.c b/common/test-message.c index 63ecf31..7dd5426 100644 --- a/common/test-message.c +++ b/common/test-message.c @@ -39,6 +39,7 @@ #include #include +#include static void test_with_err (void) -- cgit v1.1