File: 06_cdda_input.dpatch

package info (click to toggle)
alsaplayer 0.99.76-9%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,752 kB
  • ctags: 2,970
  • sloc: ansic: 16,775; sh: 10,709; cpp: 9,442; makefile: 694
file content (38 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (2)
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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_cdda_input.dpatch by Paul Brossier <piem@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add __USE_XOPEN to use swab, and remove obsolete function

@DPATCH@

--- alsaplayer-0.99.76.orig/input/cdda/cdda_engine.c
+++ alsaplayer-0.99.76/input/cdda/cdda_engine.c
@@ -140,13 +140,14 @@
 	return 0;
 }
 
-
+/*
 static char *resttime(int sec)
 {
 	static char buf[BLEN+1];
 	snprintf(buf, BLEN, "%02d:%02d:%02d", sec/3600, (sec/60)%60, sec%60);
 	return buf;
 }
+*/
 
 void toc_fail(struct cd_trk_list *tl)
 {
--- alsaplayer-0.99.76.orig/input/cdda/cdda.h
+++ alsaplayer-0.99.76/input/cdda/cdda.h
@@ -8,7 +8,9 @@
 #include <arpa/inet.h>
 #include <sys/stat.h>		/* for fd operations		*/
 #include <fcntl.h>		/* for fd operations, too	*/
+#define __USE_XOPEN /* needed for swab */
 #include <unistd.h>		/* for close()			*/
+#undef __USE_XOPEN
 #include <errno.h>		/* errno..     		        */
 
 #endif /* _cdda_h */