#include <unistd.h> /* Prototypes for lseek */
#endif
#include "mmprivate.h"
+#include "xbt/ex.h"
#ifndef SEEK_SET
#define SEEK_SET 0
if ((mbase = mdp->morecore(mdp, sizeof(mtemp))) != NULL) {
memcpy(mbase, mdp, sizeof(mtemp));
} else {
- abort();
+ THROWF(system_error,0,"morecore failed to get some memory!");
}
/* Add the new heap to the linked list of heaps attached by mmalloc */