Index: config.auto.h.in =================================================================== --- config.auto.h.in (revision 317) +++ config.auto.h.in (revision 318) @@ -188,6 +188,9 @@ /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 +/* Define to 1 if you have the header file. */ +#define HAVE_STDARG_H 1 + /****************************************************************************/ /* Package properties */ @@ -296,6 +299,9 @@ /* NOTE: /share/pcb/pcblib-newlib is kept as a temporary hack for compatibility */ +#define PCB_DEFAULT_PCB_FILE PCBLIBDIR "/default.pcb" +#define PCB_DEFAULT_PCB_FILE_SRC "./default.pcb" + #define BINDIR PCB_PREFIX "/bin" /* Relative path from bindir to exec_prefix */ Index: src/error.c =================================================================== --- src/error.c (revision 317) +++ src/error.c (revision 318) @@ -44,6 +44,9 @@ #ifdef HAVE_STRING_H #include #endif +#ifdef HAVE_STDARG_H +#include +#endif #ifdef HAVE_UNISTD_H #include #endif @@ -93,6 +96,12 @@ va_start (args, Format); gui->logv (Format, args); va_end (args); + +#ifdef HAVE_STDARG_H + va_start (args, Format); + vfprintf(stderr, Format, args); + va_end (args); +#endif }