]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Detect renameat2 with gl_CHECK_FUNCS_ANDROID.
authorPo Lu <luangruo@yahoo.com>
Sat, 24 Feb 2024 03:09:05 +0000 (11:09 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:50:23 +0000 (18:50 +0100)
(cherry picked from commit c7a2b7d023dfef78f6cb6f00fc8194ce8eaaf8a4)

configure.ac

index f582d1331dbb3089e35dd9947adc87d62f3f9541..caf539e352e3a31b7207cc21d5f8bab91d90ab0b 100644 (file)
@@ -5940,13 +5940,15 @@ pthread_sigmask strsignal setitimer \
 sendto recvfrom getsockname getifaddrs freeifaddrs \
 gai_strerror sync \
 endpwent getgrent endgrent \
-renameat2 \
 cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np \
 pthread_set_name_np])
 
 # getpwent is not present in older versions of Android.  (bug#65319)
 gl_CHECK_FUNCS_ANDROID([getpwent], [[#include <pwd.h>]])
 
+# renameat2 is not present in older versions of Android.
+gl_CHECK_FUNCS_ANDROID([renameat2], [[#include <stdio.h>]])
+
 if test "$ac_cv_func_cfmakeraw" != "yes"; then
   # On some systems (Android), cfmakeraw is inline, so AC_CHECK_FUNCS
   # cannot find it.  Check if some code including termios.h and using