diff mbox

[xf86-video-intel] intel: include sys/param.h for sys/mount.h

Message ID 1409474816-31952-1-git-send-email-jsg@jsg.id.au (mailing list archive)
State New, archived
Headers show

Commit Message

Jonathan Gray Aug. 31, 2014, 8:46 a.m. UTC
On OpenBSD sys/mount.h includes sys/ucred.h which in
turn requires the NGROUPS definitions from sys/param.h.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
---
 src/intel_device.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris Wilson Aug. 31, 2014, 10:45 a.m. UTC | #1
On Sun, Aug 31, 2014 at 06:46:56PM +1000, Jonathan Gray wrote:
> On OpenBSD sys/mount.h includes sys/ucred.h which in
> turn requires the NGROUPS definitions from sys/param.h.

We don't want mount.h on BSD systems, so let's just rearrange the code
to avoid the include there.
-Chris
diff mbox

Patch

diff --git a/src/intel_device.c b/src/intel_device.c
index 9a2ebb0..1e2d931 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -30,6 +30,7 @@ 
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/param.h>
 #include <sys/mount.h>
 #include <assert.h>
 #include <string.h>