<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ldionne@apple.com" title="Louis Dionne <ldionne@apple.com>"> <span class="fn">Louis Dionne</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - When _XOPEN_SOURCE is set,<cstdlib> and <ctime> started to fail on macOS, missing ::aligned_alloc and ::timespec_get"
   href="https://bugs.llvm.org/show_bug.cgi?id=47208">bug 47208</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>CONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Fixed By Commit(s)</td>
           <td>
                
           </td>
           <td>99f3b231cb21abc567c93813650cd76cfa614325
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - When _XOPEN_SOURCE is set,<cstdlib> and <ctime> started to fail on macOS, missing ::aligned_alloc and ::timespec_get"
   href="https://bugs.llvm.org/show_bug.cgi?id=47208#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - When _XOPEN_SOURCE is set,<cstdlib> and <ctime> started to fail on macOS, missing ::aligned_alloc and ::timespec_get"
   href="https://bugs.llvm.org/show_bug.cgi?id=47208">bug 47208</a>
              from <span class="vcard"><a class="email" href="mailto:ldionne@apple.com" title="Louis Dionne <ldionne@apple.com>"> <span class="fn">Louis Dionne</span></a>
</span></b>
        <pre>I just committed a fix:

commit 99f3b231cb21abc567c93813650cd76cfa614325
Author: Louis Dionne <<a href="mailto:ldionne@apple.com">ldionne@apple.com</a>>
Date:   Tue Sep 1 15:05:33 2020 -0400

    [libc++] Workaround timespec_get not always being available in Apple SDKs

    timespec_get is not available in Apple SDKs when (__DARWIN_C_LEVEL >=
__DARWIN_C_FULL)
    isn't true, which leads to libc++ trying to import ::timespec_get into
    namespace std when it's not available. This issue has been reported to
    Apple's libc, but we need a workaround in the meantime.

    <a href="https://llvm.org/PR47208">https://llvm.org/PR47208</a>
    rdar://68157284


Can you please let me know if it fixes your issue? It does fix the reproducer I
created locally (and checked into the test suite).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>