/[gentoo-x86]/app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch
Gentoo

Contents of /app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 8 21:25:25 2006 UTC (10 years, 6 months ago) by spock
Branch: MAIN
CVS Tags: HEAD
Add a patch to fix compilation with modern 2.6 kernels.
(Portage version: 2.1.1_pre4-r4)

1 diff -Naurp cdctl-0.15-orig/cdctl.c cdctl-0.15/cdctl.c
2 --- cdctl-0.15-orig/cdctl.c 2006-08-08 23:18:44.000000000 +0200
3 +++ cdctl-0.15/cdctl.c 2006-08-08 23:19:33.000000000 +0200
4 @@ -337,7 +337,9 @@ int do_print_capabilities(int cdrom) {
5 printf("Can report media change: %i\n", (ret & CDC_MEDIA_CHANGED)?1:0);
6 printf("Can play audio discs : %i\n", (ret & CDC_PLAY_AUDIO)?1:0);
7 printf("Can do a hard reset : %i\n", (ret & CDC_RESET)?1:0);
8 +#ifdef CDC_IOCTLS
9 printf("Has non-standard ioctls: %i\n", (ret & CDC_IOCTLS)?1:0);
10 +#endif
11 printf("Can report drive status: %i\n", (ret & CDC_DRIVE_STATUS)?1:0);
12
13 #ifdef CDROM_CHANGER_NSLOTS

  ViewVC Help
Powered by ViewVC 1.1.20