Fix typo - ac defined are prefixed with FOLLY_
authorSara Golemon <sgolemon@fb.com>
Thu, 2 Jul 2015 21:02:18 +0000 (14:02 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 2 Jul 2015 22:46:00 +0000 (15:46 -0700)
Summary: Got this ifdef wrong in my last change here.

Reviewed By: @paulbiss

Differential Revision: D2213708

folly/String.cpp

index bbf8f323a2a3003c660df5362955cd9fac220a7a..7e23a6644973abe6ba1e2759c053437fe9fd5a9a 100644 (file)
@@ -342,7 +342,8 @@ fbstring errnoStr(int err) {
   } else {
     result.assign(buf);
   }
-#elif defined(HAVE_XSI_STRERROR_R) || defined(__APPLE__) || defined(__ANDROID__)
+#elif defined(FOLLY_HAVE_XSI_STRERROR_R) || \
+  defined(__APPLE__) || defined(__ANDROID__)
   // Using XSI-compatible strerror_r
   int r = strerror_r(err, buf, sizeof(buf));