mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 10:24:51 +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:
parent
173b6c7d8a
commit
bda1f15594
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user