[PATCH] [Sanitizers] Fix inet_aton() and inet_pton() interceptors to work on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed Jan 21 03:01:11 PST 2015
Hi kcc, samsonov, emaste, eugenis,
FreeBSD's <arpa/inet.h> defines these names to be aliases:
#define inet_aton __inet_aton
#define inet_pton __inet_pton
http://reviews.llvm.org/D7084
Files:
lib/sanitizer_common/sanitizer_common_interceptors.inc
Index: lib/sanitizer_common/sanitizer_common_interceptors.inc
===================================================================
--- lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -44,6 +44,8 @@
#if SANITIZER_FREEBSD
#define pthread_setname_np pthread_set_name_np
+#define inet_aton __inet_aton
+#define inet_pton __inet_pton
#endif
#ifndef COMMON_INTERCEPTOR_INITIALIZE_RANGE
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7084.18491.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150121/2eeaca56/attachment.bin>
More information about the llvm-commits
mailing list