diff -Nurd -x'*~' octave-@OCTVERSION@.orig/src/DLD-FUNCTIONS/__glpk__.cc octave-@OCTVERSION@/src/DLD-FUNCTIONS/__glpk__.cc --- octave-@OCTVERSION@.orig/src/DLD-FUNCTIONS/__glpk__.cc 2009-01-16 01:46:23.000000000 -0500 +++ octave-@OCTVERSION@/src/DLD-FUNCTIONS/__glpk__.cc 2010-10-15 17:50:25.000000000 -0400 @@ -59,8 +59,20 @@ #else -void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info); -void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info); +void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info) +{ /* stolen from glpk-4.26 */ + int (*hook)(void *, const char *) = (int(*)(void *, const char *)) + (func); + glp_term_hook(hook, info); + return; +} + +void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info) +{ /* stolen from glpk-4.26 */ + assert(func == func); + assert(info == info); + return; +} #endif }