GNOME Bugzilla – Bug 784183
tests/libedata-cal/test-cal-cache-utils.c needs sys/wait.h
Last modified: 2017-06-27 12:49:59 UTC
tests/libedata-cal/test-cal-cache-utils.c fails to compile on FreeBSD: /home/lantw44/gnome/source/evolution-data-server/tests/libedata-cal/test-cal-cache-utils.c:46:12: error: implicit declaration of function 'WIFEXITED' is invalid in C99 [-Werror,-Wimplicit-function-declaration] g_assert (WIFEXITED (exit_status)); ^ /home/lantw44/gnome/source/evolution-data-server/tests/libedata-cal/test-cal-cache-utils.c:47:19: error: implicit declaration of function 'WEXITSTATUS' is invalid in C99 [-Werror,-Wimplicit-function-declaration] g_assert_cmpint (WEXITSTATUS (exit_status), ==, 0); ^ 2 errors generated. It can be easily resolved by adding '#include <sys/wait.h>'.
Created attachment 354421 [details] [review] Add missing sys/wait.h include for test-cal-cache-utils.c
Thanks for a bug report and patch. Both missing symbols are guarded by #ifndef G_OS_WIN32 thus I added the same for the added #include. Created commit 7d09861 in eds master (3.25.4+)