Skip to content

Commit

Permalink
Merge pull request #46 from thesamesam/clang16
Browse files Browse the repository at this point in the history
Fix configure.ac compatibility with Clang 16
  • Loading branch information
bovine authored Feb 13, 2023
2 parents 4060974 + b647727 commit c13e70c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ AC_TRY_LINK(,[
AC_MSG_CHECKING([for the readline version number])
AC_TRY_RUN([
#include <stdio.h>
int main () {
#include <unistd.h>
int main (void) {
FILE *fp = fopen("conftestversion", "w");
extern char *rl_library_version;
fprintf(fp, "%s", rl_library_version);
close(fp);
fclose(fp);
return 0;
}],
READLINE_VERSION=`cat conftestversion`
Expand Down

0 comments on commit c13e70c

Please sign in to comment.