summaryrefslogtreecommitdiff
path: root/bsd/mga_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/mga_drv.c')
-rw-r--r--bsd/mga_drv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bsd/mga_drv.c b/bsd/mga_drv.c
index 8b69b41b..ffc83db9 100644
--- a/bsd/mga_drv.c
+++ b/bsd/mga_drv.c
@@ -29,8 +29,6 @@
* Gareth Hughes <gareth@valinux.com>
*/
-#include <sys/types.h>
-
#include "mga.h"
#include "drmP.h"
#include "drm.h"
@@ -63,4 +61,8 @@ drm_chipinfo_t DRM(devicelist)[] = {
#include "drm_vm.h"
#include "drm_sysctl.h"
+#ifdef __FreeBSD__
DRIVER_MODULE(mga, pci, mga_driver, mga_devclass, 0, 0);
+#elif defined(__NetBSD__)
+CFDRIVER_DECL(mga, DV_TTY, NULL);
+#endif