git: 9eea4e03d1d4 - stable/15 - hastd: Include param.h instead of relying on pollution in hooks.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 May 2026 14:08:55 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=9eea4e03d1d493892111e690d013f25cc0fdd187
commit 9eea4e03d1d493892111e690d013f25cc0fdd187
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-12 17:46:34 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-05-19 14:08:32 +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
(cherry picked from commit fae5815a1d7ef6ef07a15231ca695cba0f848e18)
---
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>