git: 54256e7954d7 - main - Fix userspace build after commit 6d3e78ad6c11
Jason Harmening
jason.harmening at gmail.com
Sat May 29 23:57:16 UTC 2021
On 5/29/21 4:50 PM, Rebecca Cran wrote:
> On 5/29/21 3:42 PM, Jason A. Harmening wrote:
>> The branch main has been updated by jah:
>>
>> URL:
>> https://cgit.FreeBSD.org/src/commit/?id=54256e7954d7efeee53bd1ab4d08d0c772b55f4d
>>
>>
>> commit 54256e7954d7efeee53bd1ab4d08d0c772b55f4d
>> Author: Jason A. Harmening <jah at FreeBSD.org>
>> AuthorDate: 2021-05-29 21:45:09 +0000
>> Commit: Jason A. Harmening <jah at FreeBSD.org>
>> CommitDate: 2021-05-29 21:45:42 +0000
>>
>> Fix userspace build after commit 6d3e78ad6c11
>> Reported by: jenkins
>> ---
>> sys/sys/mount.h | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/sys/sys/mount.h b/sys/sys/mount.h
>> index 684d8c3eb780..6c1cd82ee84f 100644
>> --- a/sys/sys/mount.h
>> +++ b/sys/sys/mount.h
>> @@ -43,6 +43,8 @@
>> #include <sys/tslog.h>
>> #include <sys/_mutex.h>
>> #include <sys/_sx.h>
>> +#else
>> +#include <stdbool.h>
>> #endif
>> /*
>
> I'm seeing this error even with this commit:
>
>
> --- lib/libprocstat__L ---
> In file included from /usr/src/lib/libprocstat/msdosfs.c:51:
> /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/mount.h:765:7: error:
> unknown type name 'bool'
> bool *mp_busy);
> ^
Yes, it turns out parts of libprocstat like to pretend they're kernel
components for the purpose of including mount.h. I think this should
fix it, but I'm waiting for buildworld to finish to be sure:
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 6c1cd82ee84..3c7f4b9a427 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -38,6 +38,7 @@
#include <sys/ucred.h>
#include <sys/queue.h>
#ifdef _KERNEL
+#include <sys/types.h>
#include <sys/lock.h>
#include <sys/lockmgr.h>
More information about the dev-commits-src-main
mailing list