Author: sephe
Date: Fri Oct 21 06:32:45 2016
New Revision: 307706
URL: https://svnweb.freebsd.org/changeset/base/307706

Log:
  netmap: Unbreak LINT-VIMAGE building
  
  Sponsored by: Microsoft

Modified:
  head/sys/dev/netmap/netmap_freebsd.c

Modified: head/sys/dev/netmap/netmap_freebsd.c
==============================================================================
--- head/sys/dev/netmap/netmap_freebsd.c        Fri Oct 21 06:09:30 2016        
(r307705)
+++ head/sys/dev/netmap/netmap_freebsd.c        Fri Oct 21 06:32:45 2016        
(r307706)
@@ -27,10 +27,10 @@
 #include "opt_inet.h"
 #include "opt_inet6.h"
 
-#include <sys/types.h>
+#include <sys/param.h>
 #include <sys/module.h>
 #include <sys/errno.h>
-#include <sys/param.h>  /* defines used in kernel.h */
+#include <sys/jail.h>
 #include <sys/poll.h>  /* POLLIN, POLLOUT */
 #include <sys/kernel.h> /* types used in module initialization */
 #include <sys/conf.h>  /* DEV_MODULE_ORDERED */
@@ -1407,7 +1407,7 @@ freebsd_netmap_ioctl(struct cdev *dev __
        int error;
        struct netmap_priv_d *priv;
 
-       CURVNET_SET(TD_TO_VNET(rd));
+       CURVNET_SET(TD_TO_VNET(td));
        error = devfs_get_cdevpriv((void **)&priv);
        if (error) {
                /* XXX ENOENT should be impossible, since the priv
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to