summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2013-02-14 22:25:31 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2013-02-14 22:25:31 +0000
commit34f7d68f56f0bd26fdbcf643fafcdd02cab5312d (patch)
tree9f4adaedbec02f6ed61fa6d1be6b7e06ebe049bb /usr.sbin
parentf7284652e8a50c221ce51ee815cbc963320b8d23 (diff)
disable symbol visibility on vax in order to unbreak the build
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/nginx/src/pcre/config.h6
-rw-r--r--usr.sbin/nginx/src/pcre/pcre_compile.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/nginx/src/pcre/config.h b/usr.sbin/nginx/src/pcre/config.h
index 9f9bc0b0582..76dce45094a 100644
--- a/usr.sbin/nginx/src/pcre/config.h
+++ b/usr.sbin/nginx/src/pcre/config.h
@@ -136,7 +136,9 @@ them both to 0; an emulation function will be used. */
/* Define to 1 or 0, depending whether the compiler supports simple visibility
declarations. */
+#if !defined(__vax__)
#define HAVE_VISIBILITY 1
+#endif
/* Define to 1 if you have the <windows.h> header file. */
/* #undef HAVE_WINDOWS_H */
@@ -229,11 +231,13 @@ them both to 0; an emulation function will be used. */
/* Define to the version of this package. */
#define PACKAGE_VERSION "8.32"
+#if !defined(__vax__)
/* to make a symbol visible */
#define PCRECPP_EXP_DECL extern __attribute__ ((visibility ("default")))
/* to make a symbol visible */
#define PCRECPP_EXP_DEFN __attribute__ ((visibility ("default")))
+#endif
/* The value of PCREGREP_BUFSIZE determines the size of buffer used by
pcregrep to hold parts of the file it is searching. This is also the
@@ -242,6 +246,7 @@ them both to 0; an emulation function will be used. */
lines. */
#define PCREGREP_BUFSIZE 20480
+#if !defined(__vax__)
/* to make a symbol visible */
#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility ("default")))
@@ -265,6 +270,7 @@ them both to 0; an emulation function will be used. */
of the external API. It does not appear on functions that are "external"
in the C sense, but which are internal to the library. */
#define PCRE_EXP_DEFN __attribute__ ((visibility ("default")))
+#endif
/* Define to any value if linking statically (TODO: make nice with Libtool) */
/* #undef PCRE_STATIC */
diff --git a/usr.sbin/nginx/src/pcre/pcre_compile.c b/usr.sbin/nginx/src/pcre/pcre_compile.c
index 95ca538c1b6..fb592a87422 100644
--- a/usr.sbin/nginx/src/pcre/pcre_compile.c
+++ b/usr.sbin/nginx/src/pcre/pcre_compile.c
@@ -847,7 +847,7 @@ else
}
#if defined COMPILE_PCRE8
- if (c > (utf ? 0x10ffff : 0xff))
+ if (c > (unsigned int)(utf ? 0x10ffff : 0xff))
#elif defined COMPILE_PCRE16
if (c > (utf ? 0x10ffff : 0xffff))
#elif defined COMPILE_PCRE32
@@ -1085,7 +1085,7 @@ else
#endif
#if defined COMPILE_PCRE8
- if (c > (utf ? 0x10ffff : 0xff)) { overflow = TRUE; break; }
+ if (c > (unsigned int)(utf ? 0x10ffff : 0xff)) { overflow = TRUE; break; }
#elif defined COMPILE_PCRE16
if (c > (utf ? 0x10ffff : 0xffff)) { overflow = TRUE; break; }
#elif defined COMPILE_PCRE32