#! /bin/sh -e ## 27_gcc4.dpatch by Andreas Jochens ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Make alevt compile on amd64/gcc-4 ## DP: Bug#285070: if [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch -f --no-backup-if-mismatch -p1 < $0;; -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ diff -urNad alevt-1.6.1/xio.c alevt-1.6.1/xio.c --- alevt-1.6.1/xio.c 2004-12-10 19:50:42.000000000 +0100 +++ alevt-1.6.1/xio.c 2004-12-10 19:51:58.000000000 +0100 @@ -31,11 +31,11 @@ static struct dl_head dpys[1]; /* list of all displays */ +static void xio_timer(); static int timer_init(int argc, char **argv) { - static void xio_timer(); int p[2], timer_pid, i; if (pipe(p) == -1) @@ -162,12 +162,12 @@ } +static void handle_event(); //forward ref struct xio * xio_open_dpy(char *dpy, int argc, char **argv) { XClassHint classhint[1]; - static void handle_event(); //forward ref struct xio *xio; if (local_init(argc, argv) == -1)