Ticket #62132: Tiger-spawn.patch

File Tiger-spawn.patch, 657 bytes (added by ballapete (Peter "Pete" Dyballa), 3 years ago)

Patch file to solve the problem with missing spawn.h C header file (on Tiger and before)

  • configure.ac

    old new  
    299299                  Expose all libc features (__DARWIN_C_FULL).)
    300300        AC_DEFINE(USE_POSIX_SPAWN_FOR_TESTS, 1,
    301301                  [defined if we use posix_spawn in test program])
     302        AC_CHECK_HEADERS(spawn.h)
    302303        ;;
    303304    *)
    304305      ;;
  • tests/random.c

    old new  
    505505}
    506506
    507507
    508 #ifdef USE_POSIX_SPAWN_FOR_TESTS
     508#if defined(USE_POSIX_SPAWN_FOR_TESTS) && defined (HAVE_SPAWN_H)
    509509#include <spawn.h>
    510510extern char **environ;
    511511