$NetBSD: patch-aa,v 1.1.1.1 2001/05/19 13:08:27 drochner Exp $ --- unix/cdrommodule.c.orig Sat Mar 10 23:34:03 2001 +++ unix/cdrommodule.c Mon Mar 12 14:28:16 2001 @@ -28,7 +28,7 @@ #include #endif -#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(sun) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include #endif @@ -54,7 +54,7 @@ #define CDDB_DEFAULT_CDROM_DEVICE "/dev/cdrom" #define CDDB_DEFAULT_CDROM_FLAGS 0 -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) || defined(__NetBSD__) #define CDDB_TOC_HEADER_STRUCT ioc_toc_header #define CDDB_STARTING_TRACK_FIELD starting_track @@ -123,7 +123,7 @@ int cdrom_fd; unsigned char track; -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__NetBSD__) struct cd_toc_entry data; #endif @@ -135,7 +135,7 @@ entry.CDDB_TRACK_FIELD = track; entry.CDDB_FORMAT_FIELD = CDDB_MSF_FORMAT; -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__NetBSD__) entry.data = &data; entry.data_len = sizeof(data); #endif @@ -156,7 +156,7 @@ PyObject *cdrom_fileobj; int cdrom_fd; -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__NetBSD__) struct cd_toc_entry data; #endif @@ -168,7 +168,7 @@ entry.CDDB_TRACK_FIELD = CDDB_CDROM_LEADOUT; entry.CDDB_FORMAT_FIELD = CDDB_MSF_FORMAT; -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__NetBSD__) entry.data = &data; entry.data_len = sizeof(data); #endif