From d2b059c789eaedffce5734c1f76c781c3bc93700 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 25 Nov 2012 21:39:37 +0000 Subject: [PATCH] Use TerraGear getopt_long on Mac. BSD getopt_long seems to differ in some key ways, and crashes (probably due to ambiguous externs). Use the TG local code on Mac to resolve this. --- src/Prep/TerraFit/terrafit.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Prep/TerraFit/terrafit.cc b/src/Prep/TerraFit/terrafit.cc index 10803090..413df01b 100644 --- a/src/Prep/TerraFit/terrafit.cc +++ b/src/Prep/TerraFit/terrafit.cc @@ -31,13 +31,19 @@ #include #include #include + #ifndef _MSC_VER # include -# include +# ifdef __APPLE__ +# include +# else +# include +# endif #else # define S_ISDIR(a) ((a)&_S_IFDIR) # include #endif + #include #include