Posix port compile issues

Thanks @gedeonag. I have tried your change. I am getting a compilation error that I didn’t have before:

../../freertos_lib/posix_sim/port.c: In function ‘prvSetupSignalsAndSchedulerPolicy’:
/gitworkspace/rbresali/evmb/mc5u/MC5U/freertos_lib/posix_sim/port.c:528:28: error: incompatible type for argument 3 of ‘pthread_sigmask’
  528 |                            *&xSchedulerOriginalSignalMask );
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            |
      |                            sigset_t {aka struct <anonymous>}
In file included from /usr/include/signal.h:396,
                 from ../../freertos_lib/posix_sim/port.c:53:
/usr/include/bits/sigthread.h:32:31: note: expected ‘__sigset_t * restrict’ {aka ‘struct <anonymous> * restrict’} but argument is of type ‘sigset_t’ {aka ‘struct <anonymous>’}
   32 |        __sigset_t *__restrict __oldmask)__THROW;
      |        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

My /usr/include/bits/sigthread.h line 396 has:

/* Modify the signal mask for the calling thread.  The arguments have
   the same meaning as for sigprocmask(2). */
extern int pthread_sigmask (int __how,
			    const __sigset_t *__restrict __newmask,
			    __sigset_t *__restrict __oldmask)__THROW;

I am using CentOS 7.2