diff --git a/harness.h b/harness.h index 3956b7003..ccb7125d5 100644 --- a/harness.h +++ b/harness.h @@ -63,6 +63,9 @@ void trigger_exception(char *msg); /* Tested program use our versions of malloc and free */ #define malloc test_malloc #define free test_free + +/* Use undef to avoid strdup redefined error */ +#undef strdup #define strdup test_strdup #endif