[compiler-rt] r182576 - [sanitizer] Fix Windows build.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu May 23 04:41:59 PDT 2013


Author: eugenis
Date: Thu May 23 06:41:58 2013
New Revision: 182576

URL: http://llvm.org/viewvc/llvm-project?rev=182576&view=rev
Log:
[sanitizer] Fix Windows build.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=182576&r1=182575&r2=182576&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Thu May 23 06:41:58 2013
@@ -796,6 +796,7 @@ INTERCEPTOR(int, getsockname, int sock_f
 #define INIT_GETSOCKNAME
 #endif
 
+#if SANITIZER_INTERCEPT_GETHOSTBYNAME || SANITIZER_INTERCEPT_GETHOSTBYNAME_R
 static void write_hostent(void *ctx, struct __sanitizer_hostent *h) {
   COMMON_INTERCEPTOR_WRITE_RANGE(ctx, h, sizeof(__sanitizer_hostent));
   if (h->h_name)
@@ -815,6 +816,7 @@ static void write_hostent(void *ctx, str
   COMMON_INTERCEPTOR_WRITE_RANGE(
       ctx, h->h_addr_list, (p - h->h_addr_list + 1) * sizeof(*h->h_addr_list));
 }
+#endif
 
 #if SANITIZER_INTERCEPT_GETHOSTBYNAME
 INTERCEPTOR(struct __sanitizer_hostent *, gethostbyname, char *name) {





More information about the llvm-commits mailing list