Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graphics/wayland : first attempt at using FreeBSD port as base
- Loading branch information
Showing
21 changed files
with
293 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- meson.build.orig 2022-10-22 10:59:58.476779000 +0200 | ||
+++ meson.build 2022-10-31 16:12:58.994390000 +0100 | ||
@@ -16,7 +16,7 @@ | ||
config_h.set_quoted('PACKAGE_VERSION', meson.project_version()) | ||
|
||
cc_args = [] | ||
-if host_machine.system() != 'freebsd' | ||
+if host_machine.system() != 'dragonfly' | ||
cc_args += ['-D_POSIX_C_SOURCE=200809L'] | ||
endif | ||
add_project_arguments(cc_args, language: 'c') | ||
@@ -43,7 +43,6 @@ | ||
'mkostemp', | ||
'posix_fallocate', | ||
'prctl', | ||
- 'memfd_create', | ||
'mremap', | ||
'strndup', | ||
] | ||
@@ -52,11 +51,11 @@ | ||
endforeach | ||
config_h.set10('HAVE_XUCRED_CR_PID', cc.has_member('struct xucred', 'cr_pid', prefix : '#include <sys/ucred.h>')) | ||
have_broken_msg_cmsg_cloexec = false | ||
-if host_machine.system() == 'freebsd' | ||
+if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly' | ||
have_broken_msg_cmsg_cloexec = not cc.compiles(''' | ||
#include <sys/param.h> /* To get __FreeBSD_version. */ | ||
#if __FreeBSD_version < 1300502 || \ | ||
- (__FreeBSD_version >= 1400000 && __FreeBSD_version < 1400006) | ||
+ (__FreeBSD_version >= 1400000 && __FreeBSD_version < 1400006) || defined(__DragonFly__) | ||
/* | ||
* FreeBSD had a broken implementation of MSG_CMSG_CLOEXEC between 2015 and | ||
* 2021. Check if we are compiling against a version that includes the fix | ||
@@ -80,8 +79,6 @@ | ||
ffi_dep = dependency('libffi') | ||
|
||
decls = [ | ||
- { 'header': 'sys/signalfd.h', 'symbol': 'SFD_CLOEXEC' }, | ||
- { 'header': 'sys/timerfd.h', 'symbol': 'TFD_CLOEXEC' }, | ||
{ 'header': 'time.h', 'symbol': 'CLOCK_MONOTONIC' }, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.