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 */
|