YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PlatformSysWait.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_IMPL_PLATFORMSYSWAIT_H
7#define YARP_OS_IMPL_PLATFORMSYSWAIT_H
8
9#include <yarp/conf/system.h>
10#if defined(YARP_HAS_ACE)
11# include <ace/OS_NS_sys_wait.h>
12// In one the ACE headers there is a definition of "main" for WIN32
13# ifdef main
14# undef main
15# endif
16#elif defined(YARP_HAS_SYS_WAIT_H)
17# include <sys/wait.h>
18#endif
19
20namespace yarp::os::impl {
21
22#if defined(YARP_HAS_ACE)
23using ACE_OS::wait;
24using ACE_OS::waitpid;
25#else
26using ::wait;
27using ::waitpid;
28#endif
29
30} // namespace yarp::os::impl
31
32#endif // YARP_OS_IMPL_PLATFORMSYSWAIT_H
The components from which ports and connections are built.