Re: Bug#752390: /usr/include/sys/_callout.h:56:2: error: unknown type name 'sbintime_t'
reassign 752390 src:gdb
tags 752390 + patch
thanks
On 23/06/14 10:47, Hector Oron wrote:
> Apparently /usr/include/sys/_callout.h is out dated, when looking to:
> < http://code.metager.de/source/xref/freebsd/sys/sys/_callout.h >
FreeBSD 10 code seems to be newer than on that page. sbintime_t was
introduced 2013-03-04 by SVN r247777:
http://svnweb.freebsd.org/base?view=revision&revision=247777
I think it is expected on FreeBSD that if using <sys/proc.h>, to include
<sys/param.h> first, which in turn would get the definition of
sbintime_t from <sys/types.h>. This did not seem to matter until the
introduction of sbintime_t.
Please see the attached patch for gdb, which fixed this for me on
kfreebsd-amd64.
Thanks,
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Description:
Should include <sys/param.h> before <sys/proc.h>
Author: Steven Chamberlain <steven@pyro.eu.org>
--- gdb-7.7.1.orig/gdb/bsd-kvm.c
+++ gdb-7.7.1/gdb/bsd-kvm.c
@@ -35,6 +35,7 @@
#endif
#include <paths.h>
#include "readline/readline.h"
+#include <sys/param.h>
#include <sys/proc.h>
#include <sys/user.h>
Reply to: