Skip to content

Rely on Autoconf's automatic removal of conftest* files #14697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions build/php.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ AC_DEFUN([PHP_DOES_PWRITE_WORK],[
#include <stdlib.h>
$1
int main(void) {
int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
int fd = open("conftest_pwrite", O_WRONLY|O_CREAT, 0600);

if (fd < 0) return 1;
if (pwrite(fd, "text", 4, 0) != 4) return 1;
Expand All @@ -1148,7 +1148,7 @@ dnl
dnl Internal.
dnl
AC_DEFUN([PHP_DOES_PREAD_WORK],[
echo test > conftest_in
echo test > conftest_pread
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <sys/types.h>
#include <sys/stat.h>
Expand All @@ -1159,7 +1159,7 @@ AC_DEFUN([PHP_DOES_PREAD_WORK],[
$1
int main(void) {
char buf[3];
int fd = open("conftest_in", O_RDONLY);
int fd = open("conftest_pread", O_RDONLY);
if (fd < 0) return 1;
if (pread(fd, buf, 2, 0) != 2) return 1;
/* Linux glibc breakage until 2.2.5 */
Expand All @@ -1173,7 +1173,6 @@ $1
],[
ac_cv_pread=no
])
rm -f conftest_in
])

dnl
Expand Down
Loading