Ticket #7431: execvpe-qnx-nto.patch

File execvpe-qnx-nto.patch, 792 bytes (added by singpolyma, 3 years ago)

This patch works, but there is probably a better way.

  • cbits/execvpe.c

    diff --git a/cbits/execvpe.c b/cbits/execvpe.c
    index 1d96aa5..2b782cb 100644
    a b  
    5757 * SUCH DAMAGE.
    5858 */
    5959
     60#ifndef __QNXNTO__
    6061int
    6162execvpe(char *name, char *const argv[], char **envp)
    6263{
    execvpe(char *name, char *const argv[], char **envp) 
    157158        free(buf);
    158159    return (-1);
    159160}
     161#endif
    160162
    161163
    162164/* Copied verbatim from ghc/lib/std/cbits/system.c. */
  • include/execvpe.h

    diff --git a/include/execvpe.h b/include/execvpe.h
    index 676fc72..c3b2dd3 100644
    a b  
    1919#endif
    2020
    2121#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
     22#ifndef __QNXNTO__
    2223extern int execvpe(char *name, char *const argv[], char **envp);
     24#endif
    2325extern void pPrPr_disableITimers (void);
    2426#endif
    2527