GNOME Bugzilla – Bug 335704
fix to let drivel compile under OpenBSD 3.8
Last modified: 2006-04-23 02:49:25 UTC
compiling drivel-2.0.2 on OpenBSD 3.8 goes wrong. BUG I followed these steps: 1) ./configure --with-curl-libraries=/usr/local/lib \ --with-curl-includes=/usr/local/include 2) gmake the error message is In file included from /usr/local/include/curl/curl.h:1448, from drivel.h:34, from blog_blogger.c:28: /usr/local/include/curl/multi.h:168: error: syntax error before "fd_set" gmake[3]: *** [blog_blogger.o] Error 1 gmake[3]: Leaving directory `/home/bugant/drivel-2.0.2.orig/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/home/bugant/drivel-2.0.2.orig/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/bugant/drivel-2.0.2.orig' gmake: *** [all] Error 2 PROPOSED PATCH The following patch will make it compile clean. diff -ruN drivel-2.0.2.orig/src/blog_blogger.c drivel-2.0.2/src/blog_blogger.c --- drivel-2.0.2.orig/src/blog_blogger.c Thu May 19 23:59:00 2005 +++ drivel-2.0.2/src/blog_blogger.c Thu Mar 23 17:18:33 2006 @@ -19,6 +19,7 @@ * Todd Kulesza <todd@dropline.net> */ +#include <sys/types.h> #include <config.h> #define _XOPEN_SOURCE /* glibc2 needs this */ diff -ruN drivel-2.0.2.orig/src/blog_mt.c drivel-2.0.2/src/blog_mt.c --- drivel-2.0.2.orig/src/blog_mt.c Thu May 19 23:59:00 2005 +++ drivel-2.0.2/src/blog_mt.c Thu Mar 23 17:18:46 2006 @@ -22,6 +22,7 @@ /* Drivel's MT interface is modeled off of Sherzod Ruzmetov's * Net::MovableType PERL class. */ +#include <sys/types.h> #include <config.h> #define _XOPEN_SOURCE /* glibc2 needs this */
Created attachment 61854 [details] [review] fix compile under OpenBSD 3.8 I think I should had to attach the patch here. Sorry.
Confirming that this patch applies cleanly against current CVS (2006-03-24), and that Linux compilation still works after it has been applied.
Confirmed and committed, thanks for the patch!