diff --git a/src/dmalloc.h b/src/dmalloc.h
index 22016d364ba5ab4f8ed092413bdd4151594962f9..de42a6518d2547e3176ce5b6e1fe5eb5b9f08df6 100644
--- a/src/dmalloc.h
+++ b/src/dmalloc.h
@@ -1,5 +1,5 @@
 /*
- * $Id: dmalloc.h,v 1.17 1999/10/21 22:40:23 grubba Exp $
+ * $Id: dmalloc.h,v 1.18 1999/10/30 06:31:02 mast Exp $
  */
 
 extern char *debug_xalloc(long);
@@ -33,6 +33,11 @@ void *debug_malloc_update_location(void *,const char *, int);
 void *debug_malloc_name(void *p,const char *fn, int line);
 void debug_malloc_copy_names(void *p, void *p2);
 
+/* glibc 2.1 defines this as a macro. */
+#ifdef strdup
+#undef strdup
+#endif
+
 #define malloc(x) debug_malloc((x), __FILE__, __LINE__)
 #define calloc(x, y) debug_calloc((x), (y), __FILE__, __LINE__)
 #define realloc(x, y) debug_realloc((x), (y), __FILE__, __LINE__)