GNOME Bugzilla – Bug 728272
make broadway backend build on OpenBSD
Last modified: 2014-04-18 16:21:38 UTC
Hi. On my (hard) way to get jhbuild running on OpenBSD, here's a patch that allows building the broadway backend on OpenBSD. On OpenBSD shm_open(3) is part of libc and there is not librt, so add an according check. Check if we have posix_fallocate before using it. I don't know if these are the best way to achieve what I am after, comments welcome. Thanks :-)
Created attachment 274376 [details] [review] check for librt and posix_fallocate
Review of attachment 274376 [details] [review]: ::: configure.ac @@ +403,3 @@ +AC_CHECK_FUNC([posix_fallocate], + [AC_DEFINE(HAVE_POSIX_FALLOCATE, 1, [Have the posix_fallocate function])]) + I would just use AC_CHECK_FUNCS here, which will define the right symbol.
> I would just use AC_CHECK_FUNCS here, which will define the right symbol. Oh right, much better :-)
Created attachment 274633 [details] [review] check for librt and posix_fallocate v2
Review of attachment 274633 [details] [review]: ::: gdk/broadway/Makefile.am @@ +77,3 @@ if OS_UNIX libgdk_broadway_la_LIBADD = \ + @SHM_LIBS@ \ Sorry, overlooked this the first time: @SHM_LIBS@ should probably be $(SHM_LIBS) here - thats what the AC_SUBST is for.
> Sorry, overlooked this the first time: @SHM_LIBS@ should probably be > $(SHM_LIBS) here - thats what the AC_SUBST is for. Oopsy, here you go sir :-)
Created attachment 274666 [details] [review] check for librt and posix_fallocate v3
Review of attachment 274666 [details] [review]: perfect now.
pushed as 2e1d0df Thanks for coping with my autotools stupidity ;-)