Package: gamin
Version: 0.1.9-2
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch jaunty

gamin fails to build with glibc 2.8 (in Ubuntu Jaunty) because 'struct
ucred' is now only available if _GNU_SOURCE is defined. The attached
patch defines _GNU_SOURCE in the translation units that need 'struct
ucred'.

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]
--- gamin-0.1.9.orig/debian/patches/20_gnu_source.patch
+++ gamin-0.1.9/debian/patches/20_gnu_source.patch
@@ -0,0 +1,20 @@
+diff -Nur -x '*.orig' -x '*~' gamin-0.1.9/libgamin/gam_api.c gamin-0.1.9.new/libgamin/gam_api.c
+--- gamin-0.1.9/libgamin/gam_api.c	2007-07-04 14:36:48.000000000 +0100
++++ gamin-0.1.9.new/libgamin/gam_api.c	2008-11-16 08:56:18.000000000 +0000
+@@ -3,6 +3,7 @@
+  */
+ 
+ #include "config.h"
++#define _GNU_SOURCE
+ #include <pwd.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+diff -Nur -x '*.orig' -x '*~' gamin-0.1.9/server/gam_channel.c gamin-0.1.9.new/server/gam_channel.c
+--- gamin-0.1.9/server/gam_channel.c	2007-07-04 14:36:49.000000000 +0100
++++ gamin-0.1.9.new/server/gam_channel.c	2008-11-16 08:56:23.000000000 +0000
+@@ -1,4 +1,5 @@
+ #include "server_config.h"
++#define _GNU_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <errno.h>

Reply via email to