mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 01:58:02 +02:00
Conditionally include <linux/limits.h> and <sys/params.h> on Linux, BSD
<linux/limits.h> should be included conditionally for Linux only, also SPECNAMELEN used conditionally when the OS is FreeBSD requires to include <sys/params.h>. Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
8bc56fe0fb
commit
f287d1990b
1 changed files with 5 additions and 0 deletions
|
|
@ -37,7 +37,12 @@
|
|||
#include <sys/time.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#ifdef __linux__
|
||||
#include <linux/limits.h>
|
||||
#elif __FreeBSD__
|
||||
/* SPECNAMELEN in FreeBSD is defined here: */
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef MAJOR_IN_MKDEV
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue