Mesa (master): loader: include limits.h for PATH_MAX
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 2 15:49:46 UTC 2019
Module: Mesa
Branch: master
Commit: 1900b82dbfd0dff993e8b9d84fa1d8b03c5f6fa5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1900b82dbfd0dff993e8b9d84fa1d8b03c5f6fa5
Author: nia <nia at NetBSD.org>
Date: Sat Aug 31 18:10:07 2019 +0100
loader: include limits.h for PATH_MAX
This is needed to build on illumos.
The location of the PATH_MAX definition in limits.h seems to be fairly standard:
https://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
---
src/loader/loader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/loader/loader.c b/src/loader/loader.c
index d8d71c30200..7f29d19cfdf 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
+#include <limits.h>
#include <sys/param.h>
#ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h>
More information about the mesa-commit
mailing list