mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
labnag: fix FreeBSD signalfd() build error
This commit is contained in:
parent
8a5a04cc1a
commit
6c3cf84b07
4 changed files with 14 additions and 1 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -103,7 +103,8 @@ jobs:
|
||||||
sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
|
sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
|
||||||
pkg set -yn pkg:mesa-dri # hack to skip llvm dependency
|
pkg set -yn pkg:mesa-dri # hack to skip llvm dependency
|
||||||
pkg install -y git meson gcc pkgconf cairo pango evdev-proto \
|
pkg install -y git meson gcc pkgconf cairo pango evdev-proto \
|
||||||
hwdata wayland-protocols wlroots019 libdisplay-info
|
hwdata wayland-protocols libdisplay-info libepoll-shim \
|
||||||
|
wlroots019
|
||||||
run: echo "setup done"
|
run: echo "setup done"
|
||||||
|
|
||||||
- name: Install Void Linux dependencies
|
- name: Install Void Linux dependencies
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#include <sys/event.h> /* For signalfd() */
|
||||||
|
#endif
|
||||||
#include <sys/signalfd.h>
|
#include <sys/signalfd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/timerfd.h>
|
#include <sys/timerfd.h>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,13 @@ foreach xml : protocols
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
if host_machine.system() in ['freebsd', 'openbsd']
|
||||||
|
# For signalfd()
|
||||||
|
epoll_dep = dependency('epoll-shim')
|
||||||
|
else
|
||||||
|
epoll_dep = []
|
||||||
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
'labnag',
|
'labnag',
|
||||||
nag_sources,
|
nag_sources,
|
||||||
|
|
@ -41,6 +48,7 @@ executable(
|
||||||
wayland_cursor,
|
wayland_cursor,
|
||||||
wlroots,
|
wlroots,
|
||||||
server_protos,
|
server_protos,
|
||||||
|
epoll_dep,
|
||||||
],
|
],
|
||||||
install: true
|
install: true
|
||||||
)
|
)
|
||||||
|
|
|
||||||
1
scripts/checkpatch.pl
vendored
1
scripts/checkpatch.pl
vendored
|
|
@ -5659,6 +5659,7 @@ sub process {
|
||||||
$var !~ /^(?:_?Pango\w+)/ &&
|
$var !~ /^(?:_?Pango\w+)/ &&
|
||||||
$var !~ /^(?:xml\w+)/ &&
|
$var !~ /^(?:xml\w+)/ &&
|
||||||
$var !~ /^(?:GString|GError|GHashTable)/ &&
|
$var !~ /^(?:GString|GError|GHashTable)/ &&
|
||||||
|
$var !~ /^(?:__FreeBSD__)/ &&
|
||||||
$var !~ /^(?:RsvgRectangle|RsvgHandle)/ &&
|
$var !~ /^(?:RsvgRectangle|RsvgHandle)/ &&
|
||||||
$var !~ /^(?:XKB_KEY_XF86Switch_VT_1)/ &&
|
$var !~ /^(?:XKB_KEY_XF86Switch_VT_1)/ &&
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue