git: fae5815a1d7e - main - hastd: Include param.h instead of relying on pollution in hooks.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 May 2026 20:06:01 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=fae5815a1d7ef6ef07a15231ca695cba0f848e18
commit fae5815a1d7ef6ef07a15231ca695cba0f848e18
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-12 17:46:34 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-05-12 20:05:18 +0000
hastd: Include param.h instead of relying on pollution in hooks.c
This is needed at least for MAX() and PATH_MAX.
MFC after: 1 week
---
sbin/hastd/hooks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/hastd/hooks.c b/sbin/hastd/hooks.c
index 43ba6f06851a..f8c908928b0f 100644
--- a/sbin/hastd/hooks.c
+++ b/sbin/hastd/hooks.c
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/wait.h>