Bug 1844285 [Solaris] Include sys/ioccom.h if it's available for dmabuf operations r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D182440
This commit is contained in:
stransky 2023-07-20 07:16:55 +00:00
parent 7a64e09ef6
commit e204eaaee1
2 changed files with 8 additions and 0 deletions

View file

@ -1522,6 +1522,11 @@ with only_when(compile_environment & depends(target.os)(lambda os: os != "WINNT"
set_define("HAVE_ARC4RANDOM_BUF", check_symbol("arc4random_buf"))
set_define("HAVE_MALLINFO", check_symbol("mallinfo"))
# Checks for headers
# ==============================================================
with only_when(compile_environment & depends(target.os)(lambda os: os != "WINNT")):
set_define("HAVE_SYSIOCCOM_H", check_header("sys/ioccom.h"))
# Elfhack
# ==============================================================
with only_when("--enable-compile-environment"):

View file

@ -27,6 +27,9 @@
# include <sys/eventfd.h>
#endif
#include <poll.h>
#ifdef HAVE_SYSIOCCOM_H
# include <sys/ioccom.h>
#endif
#include <sys/ioctl.h>
#include "mozilla/widget/gbm.h"