diff options
author | Brent Cook <bcook@openbsd.org> | 2018-05-28 22:17:08 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2018-05-28 22:17:08 -0500 |
commit | 9b4044d8edce19f72649ba2960a54d57373b84b5 (patch) | |
tree | d0d77ea08b74338964a98fcb0737bf63f75256e6 | |
parent | b0103dad194eafb3d07fe9bde2e1b89402ad0dc5 (diff) | |
parent | 787d8d240bbeaa812bcf37deeedb3c467be468a3 (diff) | |
download | portable-9b4044d8edce19f72649ba2960a54d57373b84b5.tar.gz portable-9b4044d8edce19f72649ba2960a54d57373b84b5.tar.bz2 portable-9b4044d8edce19f72649ba2960a54d57373b84b5.zip |
Land #426, don't assume ; works as a newline assembly character
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | include/compat/sys/types.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index b74b8a1..16ed825 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -91,7 +91,7 @@ AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) | |||
91 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) | 91 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) |
92 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ | 92 | AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
93 | extern void SSLv3_method(); | 93 | extern void SSLv3_method(); |
94 | __asm__(".section .gnu.warning.SSLv3_method; .ascii \"SSLv3_method is insecure\" ; .text"); | 94 | __asm__(".section .gnu.warning.SSLv3_method\n\t.ascii \"SSLv3_method is insecure\"\n\t.text"); |
95 | int main() {return 0;} | 95 | int main() {return 0;} |
96 | ]])], [ | 96 | ]])], [ |
97 | AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.]) | 97 | AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.]) |
diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 2107119..dec09e3 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h | |||
@@ -62,7 +62,7 @@ typedef SSIZE_T ssize_t; | |||
62 | #if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG) | 62 | #if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG) |
63 | #define __warn_references(sym,msg) \ | 63 | #define __warn_references(sym,msg) \ |
64 | __asm__(".section .gnu.warning." __STRING(sym) \ | 64 | __asm__(".section .gnu.warning." __STRING(sym) \ |
65 | " ; .ascii \"" msg "\" ; .text"); | 65 | "\n\t.ascii \"" msg "\"\n\t.text"); |
66 | #else | 66 | #else |
67 | #define __warn_references(sym,msg) | 67 | #define __warn_references(sym,msg) |
68 | #endif | 68 | #endif |