74 lines
3.4 KiB
Plaintext
74 lines
3.4 KiB
Plaintext
$NetBSD: patch-configure,v 1.1 2015/07/12 00:37:47 wiz Exp $
|
|
|
|
--- configure.orig 2015-05-20 09:29:21.000000000 +0000
|
|
+++ configure
|
|
@@ -4709,7 +4709,7 @@ else
|
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
since some C++ compilers masquerading as C compilers
|
|
incorrectly reject 9223372036854775807. */
|
|
-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
&& LARGE_OFF_T % 2147483647 == 1)
|
|
? 1 : -1];
|
|
@@ -4755,7 +4755,7 @@ else
|
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
since some C++ compilers masquerading as C compilers
|
|
incorrectly reject 9223372036854775807. */
|
|
-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
&& LARGE_OFF_T % 2147483647 == 1)
|
|
? 1 : -1];
|
|
@@ -4779,7 +4779,7 @@ rm -f core conftest.err conftest.$ac_obj
|
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
since some C++ compilers masquerading as C compilers
|
|
incorrectly reject 9223372036854775807. */
|
|
-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
&& LARGE_OFF_T % 2147483647 == 1)
|
|
? 1 : -1];
|
|
@@ -4824,7 +4824,7 @@ else
|
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
since some C++ compilers masquerading as C compilers
|
|
incorrectly reject 9223372036854775807. */
|
|
-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
&& LARGE_OFF_T % 2147483647 == 1)
|
|
? 1 : -1];
|
|
@@ -4848,7 +4848,7 @@ rm -f core conftest.err conftest.$ac_obj
|
|
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
since some C++ compilers masquerading as C compilers
|
|
incorrectly reject 9223372036854775807. */
|
|
-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
&& LARGE_OFF_T % 2147483647 == 1)
|
|
? 1 : -1];
|
|
@@ -17318,10 +17318,13 @@ int
|
|
main ()
|
|
{
|
|
unsigned int major, minor, micro;
|
|
+ char *tmp_version;
|
|
|
|
fclose (fopen ("conf.glibtest", "w"));
|
|
|
|
- if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
|
|
+ /* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
+ tmp_version = g_strdup("$min_glib_version");
|
|
+ if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
|
|
printf("%s, bad version string\n", "$min_glib_version");
|
|
exit(1);
|
|
}
|
|
@@ -21217,7 +21220,7 @@ fi
|
|
|
|
|
|
# On some Linux/Unix platforms, shm_* may only be available if linking against librt
|
|
- if test "$os_win32" = "no"; then
|
|
+ if test "$os_win32" = "no" && test "$os_openbsd" = "no" && test "$os_netbsd" = "no"; then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
|
|
$as_echo_n "checking for library containing shm_open... " >&6; }
|
|
if ${ac_cv_search_shm_open+:} false; then :
|