1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-26 15:03:14 +00:00

Fix compilation problem with Xcode 9

The following error appeared when working with the latest macOS Xcode 9
SDK:

error: unknown type name 'mach_port_t' mach_port_t
__libcpp_thread_get_port();

Added:

#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#endif

(solution found at https://github.com/arvidn/libtorrent/issues/2364 )
This commit is contained in:
Carles Fernandez 2017-10-13 11:18:19 +02:00
parent 173b6c7d8a
commit bda1f15594

View File

@ -19,6 +19,10 @@
#ifndef GNSS_SDR_VOLK_QA_UTILS_H
#define GNSS_SDR_VOLK_QA_UTILS_H
#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#endif
#include <string>
#include <iostream>
#include <fstream>