1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
$NetBSD: patch-cc,v 1.4 2004/06/01 20:58:38 shannonjr Exp $
--- interface/utils.h.orig 2000-04-19 16:41:04.000000000 -0600
+++ interface/utils.h
@@ -1,4 +1,18 @@
+#ifdef __linux__
#include <endian.h>
+#endif
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ >= 104010000
+#include <sys/endian.h>
+#else
+#include <machine/endian.h>
+#include <machine/bswap.h>
+#endif
+#include <err.h> /* XXX */
+#elif defined(__FreeBSD__)
+#include <machine/endian.h>
+#endif
#include <stdio.h>
#include <errno.h>
#include <string.h>
@@ -112,6 +126,7 @@ static void cderror(cdrom_drive *d,const
break;
case CDDA_MESSAGE_FORGETIT:
default:
+ ;
}
}
}
@@ -127,6 +142,7 @@ static void cdmessage(cdrom_drive *d,con
break;
case CDDA_MESSAGE_FORGETIT:
default:
+ ;
}
}
}
@@ -169,6 +185,7 @@ static void idperror(int messagedest,cha
break;
case CDDA_MESSAGE_FORGETIT:
default:
+ ;
}
}
if(malloced)free(buffer);
@@ -205,6 +222,7 @@ static void idmessage(int messagedest,ch
break;
case CDDA_MESSAGE_FORGETIT:
default:
+ ;
}
}
if(malloced)free(buffer);
|