diff --git a/configure.ac.in b/configure.ac.in index 65c46ba8abcaccf794c5166e043883433e07370c..a658fb63ccd189f6656afd2f93b09bdf69cba7dd 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -144,7 +144,7 @@ dnl *** Check for standard functions *** dnl ************************************ AC_FUNC_MMAP() AC_CHECK_FUNCS([localeconv mkdtemp pread pwrite sched_yield setgroupent \ - setpassent strcoll strlcpy strptime symlink atexit]) + setpassent strcoll strlcpy strptime symlink atexit realpath]) dnl ****************************** dnl *** Check for i18n support *** diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c index e7fd5e2605fcbc5e879d1f14abd405e77ec32d66..17bd6ff282202cd99a7a6df5dcb481abcf9c14fe 100644 --- a/thunar/thunar-gio-extensions.c +++ b/thunar/thunar-gio-extensions.c @@ -33,6 +33,10 @@ #include <stdlib.h> /* realpath */ #endif +#ifndef HAVE_REALPATH +#define realpath(path, resolved_path) NULL +#endif + #include <libxfce4util/libxfce4util.h> #include <thunar/thunar-file.h>