*** ./json_tokener.c.ORIG	Fri Dec 15 11:49:48 2017
--- ./json_tokener.c	Fri Dec 15 11:51:32 2017
***************
*** 52,58 ****
  
  /* Use C99 NAN by default; if not available, nan("") should work too. */
  #ifndef NAN
! #define NAN nan("")
  #endif /* !NAN */
  
  static const char json_null_str[] = "null";
--- 56,63 ----
  
  /* Use C99 NAN by default; if not available, nan("") should work too. */
  #ifndef NAN
! //#define NAN nan("")
! #define NAN strtod("NAN()", NULL)
  #endif /* !NAN */
  
  static const char json_null_str[] = "null";
--- json_tokener.c_org	2023-10-16 07:07:09.844780039 +0000
+++ json_tokener.c	2023-10-16 07:09:47.303149736 +0000
@@ -34,6 +34,10 @@
 #include "printbuf.h"
 #include "strdup_compat.h"
 
+#ifdef _AIX
+#include <sys/vlimit.h>
+#endif
+
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif /* HAVE_LOCALE_H */
