summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--lib/os_internal.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a74681f00..067bae719 100644
--- a/configure.ac
+++ b/configure.ac
@@ -908,6 +908,7 @@ if test x"$enable_mmap" = x"yes"; then
fi
AC_CHECK_FUNCS([vsscanf sigaction sigset getpwuid_r nanosleep lstat memset readlink strchr va_copy])
+AC_CHECK_FUNCS([llabs])
AC_CHECK_FUNCS([snprintf _snprintf], [have_required_function="yes"])
test x"$have_required_function" != x"yes" && AC_MSG_ERROR([required function not found])
diff --git a/lib/os_internal.h b/lib/os_internal.h
index b06b51112..157b03923 100644
--- a/lib/os_internal.h
+++ b/lib/os_internal.h
@@ -339,6 +339,11 @@ int xine_private_pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct ti
# define lstat(FILENAME, BUF) stat((FILENAME), (BUF))
#endif
+/* replace llabs */
+#ifndef HAVE_LLABS
+# define llabs(a) (((a) < 0) ? (-a) : (a))
+#endif
+
/* replacements of dirent for MSVC platform */
#ifndef HAVE_OPENDIR
#define HAVE_OPENDIR