1. Stanislav Sedov
  2. valgrind-freebsd

Commits

Stanislav Sedov  committed a67275a

- FreeBSD HEAD kinfo_file structure has a larger size. Account for that.

  • Participants
  • Parent commits abfb523
  • Branches default

Comments (0)

Files changed (1)

File include/vki/vki-freebsd.h

View file
 #  error Unknown platform
 #endif
 
+#include <sys/param.h>
+
 
 //----------------------------------------------------------------------
 // From sys/select.h
         int     kf_sock_protocol;               /* Socket protocol. */
         char    kf_sa_local[128];               /* Socket address. */
         char    kf_sa_peer[128];                /* Peer address. */
+#if __FreeBSD_version < 1000053
         int     _kf_ispare[16];                 /* Space for more stuff. */
+#else
+        int     _kf_ispare[24];                 /* Space for more stuff. */
+#endif
         /* Truncated before copyout in sysctl */
         char    kf_path[VKI_PATH_MAX];          /* Path to file, if any. */
 };