diff --git a/configure.ac.in b/configure.ac.in index bfe94f4003d439f5c5ba553816c4923d07ae7842..f649950ee3332b188773939e857f6dfa8e4608ee 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 3f4f348d6ea299e8aa25ce776dffb313ba8d3993..65bc1015f7960262bac741361c4e00bd9d8a285f 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>