*** ./mkdtemp.h.ORIG Wed Nov 13 23:57:43 2013 --- ./mkdtemp.h Wed Nov 13 23:57:37 2013 *************** *** 0 **** --- 1,27 ---- + /* + * **************************************************************************** + * Copyright (c) 2013, PyInstaller Development Team. + * Distributed under the terms of the GNU General Public License with exception + * for distributing bootloader. + * + * The full license is in the file COPYING.txt, distributed with this software. + * **************************************************************************** + */ + + + /* + * On some platforms (e.g. Solaris, AIX) mkdtemp is not available. + */ + #ifndef __MKDTEMP__ + #define __MKDTEMP__ + + static char* mkdtemp(char *template) + { + if( ! mktemp(template) ) + return NULL; + if( mkdir(template, 0700) ) + return NULL; + return template; + } + + #endif *** ./pdfbook-20070930.c.ORIG Wed Nov 13 23:57:56 2013 --- ./pdfbook-20070930.c Wed Nov 13 23:59:00 2013 *************** *** 31,36 **** --- 31,40 ---- #include #include + #if defined(_AIX) && !(defined(AIX61) || defined(_AIX71)) + #include "mkdtemp.h" + #endif + #define TMP_INFILE_BASE "input" #define TMP_OUTFILE_BASE "output" #define DEF_PAPERSIZE "a4"