X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fevent.c;fp=common-src%2Fevent.c;h=775d97d74f07080b36cea561ce83cea58a4c7e25;hb=d74dc4d908fcbc1a4ef474edaf51e61ec90eab6b;hp=474e87138107daae2079bedb0c2c646b446a3c7a;hpb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;p=debian%2Famanda diff --git a/common-src/event.c b/common-src/event.c index 474e871..775d97d 100644 --- a/common-src/event.c +++ b/common-src/event.c @@ -479,8 +479,12 @@ new_fdsource(gint fd, GIOCondition events) * exponentially increasing interals. Writing a smarter implementation runs into * some tricky race conditions and extra machinery. Since there are few, if any, * users of a glib version this old, such machinery wouldn't get much testing. + * + * FreeBSD users have also reported problems with the glib child watch source, + * so we use the dumb version on FreeBSD, too. */ -#if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 6)) + +#if (defined(__FreeBSD__) || GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 6)) typedef struct ChildWatchSource { GSource source; /* must be the first element in the struct */