Skip to content
Snippets Groups Projects
Commit 0197c617 authored by shattered's avatar shattered
Browse files

In NetBSD-current newer than 30.12.2003, <dev/ata/atareg.h> contains

conflicting definition for struct ata_smart_selftestlog.  Install a workaround.

Tested on 2.0E and 1.6.2.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1693 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 4b0f7670
No related branches found
No related tags found
No related merge requests found
...@@ -24,17 +24,22 @@ ...@@ -24,17 +24,22 @@
#ifndef OS_NETBSD_H_ #ifndef OS_NETBSD_H_
#define OS_NETBSD_H_ #define OS_NETBSD_H_
#define OS_NETBSD_H_CVSID "$Id: os_netbsd.h,v 1.6 2004/03/30 20:12:11 shattered Exp $\n" #define OS_NETBSD_H_CVSID "$Id: os_netbsd.h,v 1.7 2004/04/29 19:00:36 shattered Exp $\n"
#include <sys/device.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/scsiio.h>
#include <sys/ataio.h>
#define ata_smart_selftestlog __netbsd_ata_smart_selftestlog
#include <dev/ata/atareg.h> #include <dev/ata/atareg.h>
#if HAVE_DEV_ATA_ATAVAR_H #if HAVE_DEV_ATA_ATAVAR_H
#include <dev/ata/atavar.h> #include <dev/ata/atavar.h>
#endif #endif
#include <dev/ic/wdcreg.h> #include <dev/ic/wdcreg.h>
#include <sys/ataio.h> #undef ata_smart_selftestlog
#include <sys/scsiio.h>
#include <err.h> #include <err.h>
#include <fcntl.h> #include <fcntl.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment