libethumb: add patch to fix static builds

Fixes:
http://autobuild.buildroot.net/results/060/060c4b7303976994a13ecd286e936fee59c7a095/
http://autobuild.buildroot.net/results/d01/d0111a8524f74c6bc596d85289addbed0e77f8c6/
http://autobuild.buildroot.net/results/147/1471f8a4838369ed825da406f88aae425465e827/
http://autobuild.buildroot.net/results/a35/a35a39fee7c24abe0bbe12d71bebf92005367391/

And many more.

Ethumb includes dlfcn.h even though it isn't used, breaking builds with
purely static toolchains.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2015-11-26 22:11:06 +01:00
parent 66fb7028ed
commit a36d751abd

View File

@ -0,0 +1,28 @@
From f7eeddc88ce67c248ebb1e6b8a3cb74d61de42b4 Mon Sep 17 00:00:00 2001
From: Peter Korsgaard <peter@korsgaard.com>
Date: Thu, 26 Nov 2015 22:07:24 +0100
Subject: [PATCH] ethumb: drop unused dlfcn.h include
ethumb includes dlfcn.h even though it isn't used, breaking builds with
purely static toolchains.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
src/lib/ethumb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/lib/ethumb.c b/src/lib/ethumb.c
index d1453a0..48c6a2d 100644
--- a/src/lib/ethumb.c
+++ b/src/lib/ethumb.c
@@ -58,7 +58,6 @@ void *alloca (size_t);
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
-#include <dlfcn.h>
#include <ctype.h>
#ifdef HAVE_XATTR
--
2.1.4