[PATCH] Fix definition of the __sanitizer_passwd structure on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Mon Mar 31 07:45:12 PDT 2014


Hi kcc, samsonov, eugenis,

http://llvm-reviews.chandlerc.com/D3225

Files:
  lib/sanitizer_common/sanitizer_platform_limits_posix.h

Index: lib/sanitizer_common/sanitizer_platform_limits_posix.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -279,18 +279,21 @@
     char *pw_passwd;
     int pw_uid;
     int pw_gid;
-#if SANITIZER_MAC
+#if SANITIZER_MAC || SANITIZER_FREEBSD
     long pw_change;
     char *pw_class;
 #endif
 #if !SANITIZER_ANDROID
     char *pw_gecos;
 #endif
     char *pw_dir;
     char *pw_shell;
-#if SANITIZER_MAC
+#if SANITIZER_MAC || SANITIZER_FREEBSD
     long pw_expire;
 #endif
+#if SANITIZER_FREEBSD
+    int pw_fields;
+#endif
   };
 
   struct __sanitizer_group {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3225.1.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140331/cf005ab1/attachment.bin>


More information about the llvm-commits mailing list