summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-11-11 09:29:21 +0000
committerKamil Rytarowski <n54@gmx.com>2017-11-11 09:29:21 +0000
commit71e27a1b7b3b367b666f8a1977b903059f221603 (patch)
tree1e40e488bb5bd660bf1078d03b759bc8849ca6e7 /lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
parent42df8011b906358522219a262e6fbd2e47e7a3d6 (diff)
Correct NetBSD build issue
Cast SIG_IGN to (uptr). SIG_IGN is defined on NetBSD as a function pointer and cannot be assigned to an integer as it is. sys/signal.h:#define SIG_IGN ((void (*)(int)) 1) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc b/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
index 144500b34..b973f0d6d 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
@@ -105,7 +105,7 @@ unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
unsigned struct_mq_attr_sz = sizeof(struct mq_attr);
unsigned struct_statvfs_sz = sizeof(struct statvfs);
-const uptr sig_ign = SIG_IGN;
+const uptr sig_ign = (uptr)SIG_IGN;
const uptr sig_dfl = (uptr)SIG_DFL;
const uptr sig_err = (uptr)SIG_ERR;
const uptr sa_siginfo = (uptr)SA_SIGINFO;