Skip to content

Commit

Permalink
Merge pull request #6 from thesamesam/clang-16-implicit-int
Browse files Browse the repository at this point in the history
Fix Clang 15/16 compatibility
  • Loading branch information
markt-asf committed Sep 4, 2023
2 parents 2030005 + a276afb commit 21f5a92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions native/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ AC_TRY_RUN([
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdlib.h>
int main(void)
{
Expand Down Expand Up @@ -344,6 +345,7 @@ AC_TRY_RUN([
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdlib.h>
int main(void)
{
Expand Down Expand Up @@ -395,6 +397,7 @@ AC_TRY_RUN([
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdlib.h>
int main(void)
{
Expand All @@ -416,6 +419,7 @@ AC_TRY_RUN([
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
int main(void)
{
Expand Down
2 changes: 1 addition & 1 deletion native/scripts/build/jk_common.m4
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AC_CACHE_VAL(AC_CV_NAME,
[AC_TRY_RUN([#include <stdio.h>
#include <stdlib.h>
$1
main()
int main()
{
FILE *f=fopen("conftestval","w");
if (!f) exit(1);
Expand Down

0 comments on commit 21f5a92

Please sign in to comment.