GNOME Bugzilla – Bug 654749
goom: unbreak build on PPC on openbsd
Last modified: 2011-07-16 22:52:20 UTC
Created attachment 192095 [details] [review] add missing include Hi. Under OpenBSD building gst-plugins-good fails with the following error: /usr/include/sys/proc.h:64: error: 'MAXLOGNAME' undeclared here (not in a function) /usr/include/sys/proc.h:285: error: 'MAXCOMLEN' undeclared here (not in a function) This patch adds a missing include for sys/param.h which fixes the build for me. I don't know whether Linux has the same issue but I don't think adding this include should have any bad effect in case it already builds correctly there.
Thanks for the patch. I was wondering: what happens if you just remove these two includes: #include <sys/types.h> #include <sys/sysctl.h> I don't see what they'd be needed for.
(In reply to comment #1) > Thanks for the patch. I was wondering: what happens if you just remove these > two includes: > > #include <sys/types.h> > #include <sys/sysctl.h> > > I don't see what they'd be needed for. Indeed, it works fine without them.
Great, thanks! commit df3cee6606bed13d2edc8480ed244d480ab4790c Author: Antoine Jacoutot <ajacoutot@openbsd.org> Date: Sat Jul 16 23:47:50 2011 +0100 goom: fix build on PPC on openbsd A missing sys/param.h include results in: /usr/include/sys/proc.h:64: error: 'MAXLOGNAME' undeclared here (not in a function) /usr/include/sys/proc.h:285: error: 'MAXCOMLEN' undeclared here (not in a function) when compiling goom on openbsd/ppc. We can just remove the two sys/ includes here, they are not needed for anything. https://bugzilla.gnome.org/show_bug.cgi?id=654749