#include <util.h>
#endif /* __APPLE__ */
-#include "mi_gdb.h"
+#include "gdbmi.h"
#if !defined(__linux__)
mi_aux_term *gmi_look_for_free_vt()
{
+ int ret;
int vt=mi_look_for_free_vt();
mi_aux_term *res;
if (!res)
return NULL;
res->pid=-1;
- asprintf(&res->tty,"/dev/tty%d",vt);
+ ret = asprintf(&res->tty,"/dev/tty%d",vt);
return res;
}