compat/platform_{pipe,semaphore}: IWYU

This commit is contained in:
Martin Pulec
2025-03-25 09:42:57 +01:00
parent 26ffbfded8
commit c2116835da
5 changed files with 17 additions and 20 deletions

View File

@@ -44,6 +44,7 @@
#include "audio/types.h"
#include "audio/utils.h"
#include "compat/platform_semaphore.h"
#include "config.h" // for PACKAGE_STRING
#include "debug.h"
#include "host.h"
#include "jack_common.h"

View File

@@ -35,17 +35,20 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#include "config_unix.h"
#include "config_win32.h"
#include "compat/platform_pipe.h"
#include "rtp/net_udp.h" // socket_error
#include <cstdio> // for perror, NULL, fprintf, stderr
#include <cstring> // for memset
#include <sys/time.h> // for timeval
#include <thread>
#ifndef _WIN32
#include <unistd.h> // for pipe
#endif
#include "rtp/net_udp.h" // socket_error
#include "compat/net.h" // htons etc.
using std::thread;
#ifdef _WIN32

View File

@@ -46,13 +46,11 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#endif // HAVE_CONFIG_H
#include "compat/platform_semaphore.h"
#include "debug.h"
#include <errno.h> // for EINTR, errno
#include <stdio.h> // for perror
#include <stdlib.h> // for abort
#ifdef __APPLE__
#include <mach/semaphore.h>
@@ -62,12 +60,10 @@
#include <semaphore.h>
#endif /* __APPLE__ */
#include "compat/platform_semaphore.h"
void platform_sem_init(void *semStructure, int pshared, int initialValue)
{
#ifdef __APPLE__
UNUSED(pshared);
(void) pshared;
semaphore_create(mach_task_self(), (semaphore_t *) semStructure,
SYNC_POLICY_FIFO, initialValue);
#else

View File

@@ -46,10 +46,6 @@
*
*/
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#ifndef _PLATFORM_SEMAPHORE_H
#define _PLATFORM_SEMAPHORE_H

View File

@@ -62,6 +62,7 @@
#include "audio/types.h" // for audio_frame
#include "compat/platform_semaphore.h" // for platform_sem_post, platform_s...
#include "compat/usleep.h" // for usleep
#include "debug.h" // for log_msg, LOG_LEVEL_ERROR, LOG...
#include "host.h" // for exit_uv, audio_capture_channels
#include "lib_common.h" // for REGISTER_MODULE, library_class