123 lines
2.7 KiB
Plaintext
123 lines
2.7 KiB
Plaintext
--- src/lib/libast/comp/conf.sh
|
|
+++ src/lib/libast/comp/conf.sh 2007-09-13 10:39:15.000000000 +0000
|
|
@@ -143,7 +143,7 @@ main()
|
|
return 1;
|
|
#else
|
|
_ast_intmax_t s = 0x7fffffffffffffffLL;
|
|
- unsigned _ast_intmax_t u = 0xffffffffffffffffLL;
|
|
+ unsigned _ast_intmax_t u = 0xffffffffffffffffULL;
|
|
|
|
return 0;
|
|
#endif
|
|
@@ -785,7 +785,11 @@ defined() # list-file
|
|
cat <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
#undef conf
|
|
@@ -813,7 +817,11 @@ unsigned int conf[] = {
|
|
cat <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
#undef conf
|
|
@@ -854,7 +862,11 @@ done
|
|
cat <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
#undef conf
|
|
@@ -1031,7 +1043,7 @@ do eval name=\"'$'CONF_name_$key\"
|
|
case $flags in
|
|
*[Ll]*) d=
|
|
case ${conf_name} in
|
|
- LONG_MAX|SSIZE_MAX)
|
|
+ LONG_MAX|UINT_MAX|INT_MAX|SHRT_MAX|SSIZE_MAX|WORD_BIT|LONG_BIT|PTHREAD_*)
|
|
x=
|
|
;;
|
|
*) eval x='$'CONF_const_${conf_name}
|
|
@@ -1091,7 +1103,11 @@ do eval name=\"'$'CONF_name_$key\"
|
|
${head}
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
int
|
|
@@ -1105,7 +1121,11 @@ main()
|
|
*) cat > $tmp.c <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
${script}
|
|
@@ -1249,7 +1269,11 @@ printf("#endif\n");
|
|
*) cat > $tmp.c <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
${script}
|
|
@@ -1322,7 +1346,7 @@ ${script}
|
|
*[lLuU])
|
|
case $LL_suffix in
|
|
??) case $conf_limit in
|
|
- *[!lL][lL]|*[!lL][lL][uU])
|
|
+ *[0-9a-fA-F][lL]|*[0-9a-fA-F][uU][lL])
|
|
conf_limit=${conf_limit}L
|
|
;;
|
|
esac
|
|
@@ -1357,7 +1381,7 @@ ${script}
|
|
*[lLuU])
|
|
case $LL_suffix in
|
|
??) case $conf_minmax in
|
|
- *[!lL][lL]|*[!lL][lL][uU])
|
|
+ *[0-9a-fA-F][lL]|*[0-9a-fA-F][uU][lL])
|
|
conf_minmax=${conf_minmax}L
|
|
;;
|
|
esac
|
|
@@ -1533,7 +1557,11 @@ esac
|
|
cat <<!
|
|
${head}
|
|
#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
#include <limits.h>
|
|
+#if defined(__linux__)
|
|
+#include <linux/limits.h>
|
|
+#endif
|
|
#include <unistd.h>$systeminfo$headers
|
|
${tail}
|
|
#include "${base}.h"
|