vapier 15/02/28 22:27:05 Added: gd-2.1.1-headers.patch Log: Fix out-of-tree test builds #540376 by tka. (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path 1.1 media-libs/gd/files/gd-2.1.1-headers.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.1.1-headers.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.1.1-headers.patch?rev=1.1&content-type=text/plain Index: gd-2.1.1-headers.patch =================================================================== >From 92f5a4b113deca14e80c218e6bcd06835c3e059f Mon Sep 17 00:00:00 2001 From: Mike Frysinger <[email protected]> Date: Sat, 28 Feb 2015 17:17:52 -0500 Subject: [PATCH] tests: fix header inclusion gdnametest uses string funcs, so pull in string.h. It also can't pull in test_config.h directly as it breaks when building out of tree. Use the -I paths to find it. URL: https://bugs.gentoo.org/540376 diff --git a/tests/gdimagefile/gdnametest.c b/tests/gdimagefile/gdnametest.c index dd8f019..f2bb8a6 100644 --- a/tests/gdimagefile/gdnametest.c +++ b/tests/gdimagefile/gdnametest.c @@ -1,9 +1,10 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "gd.h" #include "gdtest.h" -#include "../test_config.h" +#include "test_config.h" #define WIDTH 60 #define HEIGHT 50 -- 2.3.1
