Support the localtime interceptor for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Sat, 20 Jan 2018 00:40:29 +0000 (00:40 +0000)
committerKamil Rytarowski <n54@gmx.com>
Sat, 20 Jan 2018 00:40:29 +0000 (00:40 +0000)
Summary:
The localtime symbol is mangled to __locatime50
on NetBSD.

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, vitalybuka

Reviewed By: vitalybuka

Subscribers: kubamracek, llvm-commits, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D42045

llvm-svn: 323019

compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

index afa8a9f..45b38a0 100644 (file)
@@ -88,6 +88,7 @@
 #define glob __glob30
 #define gmtime __gmtime50
 #define gmtime_r __gmtime_r50
+#define localtime __locatime50
 #define localtime_r __localtime_r50
 #define mktime __mktime50
 #define opendir __opendir30