Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2021 15:56:38 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4b8c2456693d - stable/13 - sys/acct.h: Add sys/types.h include
Message-ID:  <202112061556.1B6Fuc9N033786@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b8c2456693dadf143d69af44efe839afa9eaed5

commit 4b8c2456693dadf143d69af44efe839afa9eaed5
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-11-24 17:37:48 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-06 15:55:58 +0000

    sys/acct.h: Add sys/types.h include
    
    There's no harm in including sys/types.h here and acct.h needs it. This
    file isn't defined by any standard, so what we do here wrt namespaces
    likely doesn't matter. If it does, it will be easy enough to add the
    necessary __BSD_VISIBLE guards in the future.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit b194db935565d58392c21906419cbd99a5ecc0c3)
---
 sys/sys/acct.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/acct.h b/sys/sys/acct.h
index 36c6a5e23d06..7f61f3f4fc10 100644
--- a/sys/sys/acct.h
+++ b/sys/sys/acct.h
@@ -42,6 +42,8 @@
 
 #ifdef _KERNEL
 #define float uint32_t
+#else
+#include <sys/types.h>
 #endif
 
 #define AC_COMM_LEN 16



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112061556.1B6Fuc9N033786>