libs/pipewire: guard all Linux-only headers for __redox__ (batch)
Guard #include of sys/{mount,vfs,thr,ucred}.h and linux/{filter,if_ether,
if_packet,net_tstamp}.h behind #ifndef __redox__ (Redox lacks them; the raw-
socket/mount/statfs code paths behind them are not used on Redox). Baked into
the vendored source/ tree.
This commit is contained in:
@@ -13,8 +13,10 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#ifndef __redox__
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -14,11 +14,15 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#ifndef __redox__
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_SYS_MOUNT_H
|
||||
#ifndef __redox__
|
||||
#include <sys/mount.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
@@ -2,10 +2,18 @@
|
||||
/* SPDX-FileCopyrightText: Copyright © 2022 Wim Taymans */
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#ifndef __redox__
|
||||
#include <linux/if_ether.h>
|
||||
#endif
|
||||
#ifndef __redox__
|
||||
#include <linux/if_packet.h>
|
||||
#endif
|
||||
#ifndef __redox__
|
||||
#include <linux/filter.h>
|
||||
#endif
|
||||
#ifndef __redox__
|
||||
#include <linux/net_tstamp.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <net/if.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
@@ -3,9 +3,15 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#include <unistd.h>
|
||||
#ifndef __redox__
|
||||
#include <linux/if_ether.h>
|
||||
#endif
|
||||
#ifndef __redox__
|
||||
#include <linux/if_packet.h>
|
||||
#endif
|
||||
#ifndef __redox__
|
||||
#include <linux/net_tstamp.h>
|
||||
#endif
|
||||
#include <net/if.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef __redox__
|
||||
#include <linux/if_packet.h>
|
||||
#endif
|
||||
#include <net/if.h>
|
||||
|
||||
#include <spa/utils/ringbuffer.h>
|
||||
|
||||
@@ -23,8 +23,10 @@
|
||||
#include <grp.h>
|
||||
#endif
|
||||
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
|
||||
#ifndef __redox__
|
||||
#include <sys/ucred.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <spa/pod/iter.h>
|
||||
#include <spa/pod/parser.h>
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#ifndef __redox__
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
@@ -33,8 +33,10 @@
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
|
||||
#ifndef __redox__
|
||||
#include <sys/thr.h>
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__GNU__)
|
||||
#include <hurd.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user