From 7906e6c255d4434479ef7fab8ddedd8112fc162a Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 6 Dec 2004 21:34:48 +0000 Subject: - Update to 0.9.0 PR: ports/74745 Submitted by: Antoine Brodin --- devel/libgii/files/patch-aa | 60 --------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 devel/libgii/files/patch-aa (limited to 'devel/libgii/files/patch-aa') diff --git a/devel/libgii/files/patch-aa b/devel/libgii/files/patch-aa deleted file mode 100644 index ae6aa8ac59fc..000000000000 --- a/devel/libgii/files/patch-aa +++ /dev/null @@ -1,60 +0,0 @@ -*** input/kii/kii.c.orig Mon Apr 14 12:34:49 2003 ---- input/kii/kii.c Mon Apr 14 12:40:07 2003 -*************** -*** 33,39 **** - kiic_mapper_identify_request_t request; - kiic_mapper_identify_result_t result; - } identify; -! - if (NULL == ctx) { - - return -KII_ERRNO(LIB, INVAL); ---- 33,42 ---- - kiic_mapper_identify_request_t request; - kiic_mapper_identify_result_t result; - } identify; -! union { -! kiic_mapper_attach_request_t request; -! kiic_mapper_attach_result_t result; -! } attach; - if (NULL == ctx) { - - return -KII_ERRNO(LIB, INVAL); -*************** -*** 52,57 **** ---- 55,72 ---- - return -KII_ERRNO(LIB, INVAL); - } - -+ #ifdef __FreeBSD__ -+ memset(&attach, 0, sizeof(attach)); -+ -+ /* Pass an invalid device id to force auto attachement */ -+ attach.request.device_id = -1; -+ if (ioctl((*ctx)->mapper.fd, KIIC_MAPPER_ATTACH, &attach)) { -+ -+ perror("failed to attach to device"); -+ return errno; -+ } -+ #endif -+ - memset(&identify, 0, sizeof(identify)); - strncpy(identify.request.client, "libkii", - sizeof(identify.request.client)); -*************** -*** 176,182 **** - void kiiPrintEvent(kii_context_t *kii, FILE *f, const kii_event_t *e) - { - fprintf(f, "event: size %i, focus %i, device %i, time %i", -! e->any.size, e->any.focus, e->any.device, e->any.time); - - switch (e->any.type) { - ---- 191,197 ---- - void kiiPrintEvent(kii_context_t *kii, FILE *f, const kii_event_t *e) - { - fprintf(f, "event: size %i, focus %i, device %i, time %i", -! e->any.size, e->any.focus, e->any.device, (int)e->any.time); - - switch (e->any.type) { - -- cgit v1.2.3