--- limits.h	2009-08-05 11:09:21.000000000 +0800
+++ limits.h	2024-02-06 03:33:29.000000000 +0800
@@ -1,3 +1,6 @@
+#ifdef __APPLE__
+#include <machine/limits.h>
+#endif
 
 /*
  * This first section contains constants which can be changed at will.
