YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PlatformIfaddrs.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
7#ifndef YARP_OS_IMPL_PLATFORMIFADDRS_H
8#define YARP_OS_IMPL_PLATFORMIFADDRS_H
9
10#include <yarp/conf/system.h>
11#if defined(YARP_HAS_IFADDRS_H)
12# include <ifaddrs.h>
13#endif
14
15namespace yarp::os::impl {
16
17// ACE_OS::getifaddrs, etc are not implemented, anyway ACE implementation
18// is different, therefore they are not needed.
19#if !defined(YARP_HAS_ACE)
20using ::freeifaddrs;
21using ::getifaddrs;
22#endif
23
24} // namespace yarp::os::impl
25
26#endif // YARP_OS_IMPL_PLATFORMIFADDRS_H
The components from which ports and connections are built.