Print this page
_XOPEN_SOURCE not needed for usleep() in Solarish systems.

Split Close
Expand all
Collapse all
          --- old/tls/s2n_recv.c
          +++ new/tls/s2n_recv.c
↓ open down ↓ 6 lines elided ↑ open up ↑
   7    7   *
   8    8   *  http://aws.amazon.com/apache2.0
   9    9   *
  10   10   * or in the "license" file accompanying this file. This file is distributed
  11   11   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12   12   * express or implied. See the License for the specific language governing
  13   13   * permissions and limitations under the License.
  14   14   */
  15   15  
  16   16  /* Use usleep */
       17 +#ifndef __sun
  17   18  #define _XOPEN_SOURCE 500
       19 +#endif /* __sun doesn't need XOPEN_SOURCE defined for usleep() in unistd.h. */
  18   20  #include <unistd.h>
  19   21  
  20   22  #include <errno.h>
  21   23  #include <s2n.h>
  22   24  
  23   25  #include "error/s2n_errno.h"
  24   26  
  25   27  #include "tls/s2n_connection.h"
  26   28  #include "tls/s2n_handshake.h"
  27   29  #include "tls/s2n_record.h"
↓ open down ↓ 164 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX