Ticket #13601: 0001-unistd.h-define-_POSIX_BARRIERS.patch

File 0001-unistd.h-define-_POSIX_BARRIERS.patch, 854 bytes (added by return_0e, 3 years ago)

_POSIX_BARRIERS definition

  • headers/posix/unistd.h

    From 4b01ddbeb622192f71ba702056a5975eb6dae1f0 Mon Sep 17 00:00:00 2001
    From: "Joseph C, Hill" <calvin@hakobaito.co.uk>
    Date: Thu, 13 Jul 2017 21:35:42 +0100
    Subject: [PATCH] unistd.h: define _POSIX_BARRIERS
    
    This constant was missing in unistd.h and some applications
    use it to check for pthread barriers support.
    ---
     headers/posix/unistd.h | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h
    index 9c8fc77..3c9a3f6 100644
    a b  
    3939    /* TODO: Check this! */
    4040/* TODO: Update these to the current POSIX version! Ideally after actually
    4141    supporting the features. */
     42#define _POSIX_BARRIERS                     (200112L)
    4243#define _POSIX_SEMAPHORES                   (200112L)
    4344#define _POSIX_THREADS                      (200112L)
    4445#define _POSIX_MAPPED_FILES                 (200809L)