avoid unneed preprocessor redefinition

Limit a Mac-specific declaration that isn't needed anyway.

Related to #2797
This commit is contained in:
Matthew Flatt 2019-08-27 05:56:52 -06:00
parent 81bdbb19e9
commit a8d5a4f2f4

View File

@ -57,7 +57,9 @@ extern "C" {
#include <inttypes.h>
#ifndef UNW_ARM
# define _XOPEN_SOURCE /* needed for Mac OS X */
# ifdef __APPLE__
# define _XOPEN_SOURCE
# endif
# define __USE_GNU
# include <ucontext.h>
# undef __USE_GNU