diff options
author | Denis Kozadaev <[email protected]> | 2024-04-01 16:28:56 +0300 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2024-04-15 09:56:32 +0200 |
commit | 4682d07bdc78302d8eb5caf4d6aea5381c1c1df5 (patch) | |
tree | 59f44ee425216b474a8c747daaeb1b8b9868394f | |
parent | c9dcbc21dd354cfdf7a70a882b58cb12a0a0b203 (diff) | |
download | tde-packaging-4682d07bdc78302d8eb5caf4d6aea5381c1c1df5.tar.gz tde-packaging-4682d07bdc78302d8eb5caf4d6aea5381c1c1df5.zip |
FreeBSD imlib: basedir defined in libgen.h
Signed-off-by: Denis Kozadaev <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit a4f44d553c772a44240ce581405b4d342915c5ff)
-rw-r--r-- | freebsd/dependencies/imlib/files/patch-check-gnu-basename.diff | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-check-gnu-basename.diff b/freebsd/dependencies/imlib/files/patch-check-gnu-basename.diff new file mode 100644 index 000000000..c636bac01 --- /dev/null +++ b/freebsd/dependencies/imlib/files/patch-check-gnu-basename.diff @@ -0,0 +1,46 @@ +Index: imlib-1.9.15/Imlib/colors.c +=================================================================== +--- imlib-1.9.15.orig/Imlib/colors.c ++++ imlib-1.9.15/Imlib/colors.c +@@ -3,8 +3,10 @@ + #include "Imlib.h" + #include "Imlib_private.h" + +-#ifndef HAVE_BASENAME ++#if defined(HAVE_GNU_BASENAME) + #include <string.h> ++#elif defined(HAVE_BASENAME) ++#include <libgen.h> + #endif + + #ifdef __EMX__ +Index: imlib-1.9.15/config.h.in +=================================================================== +--- imlib-1.9.15.orig/config.h.in ++++ imlib-1.9.15/config.h.in +@@ -19,6 +19,9 @@ + /* Define to 1 if you have the <dlfcn.h> header file. */ + #undef HAVE_DLFCN_H + ++/* Defined if we hare GNU version of basename */ ++#undef HAVE_GNU_BASENAME ++ + /* Define to 1 if you have the <inttypes.h> header file. */ + #undef HAVE_INTTYPES_H + +Index: imlib-1.9.15/configure.in +=================================================================== +--- imlib-1.9.15.orig/configure.in ++++ imlib-1.9.15/configure.in +@@ -101,6 +101,11 @@ AC_TYPE_SIGNAL + AC_CHECK_FUNCS(vsnprintf) + AC_CHECK_FUNCS(snprintf) + AC_CHECK_FUNCS(basename) ++AC_CHECK_DECL([basename(char*)], AC_DEFINE(HAVE_GNU_BASENAME, 1, [Defined if we hare GNU version of basename]), [], [ ++#define _GNU_SOURCE ++#include <string.h> ++]) ++ + + AC_CHECK_FUNCS(blumfrub) + AC_CHECK_FUNCS(buckets_of_erogenous_nym) |