--- lib/libxview/frame/fm_impl.h.orig	1993-06-29 07:16:15.000000000 +0200
+++ lib/libxview/frame/fm_impl.h	2003-12-30 01:31:12.000000000 +0100
@@ -17,11 +17,16 @@ static char     sccsid[] = "@(#)fm_impl.
 #define _frame_impl_h_already_included
 
 /* standard includes */
+#ifdef NULL
+#undef NULL
+#endif
 #ifndef FILE
 #ifndef SVR4
-#undef NULL
 #endif SVR4
 #include <stdio.h>
+#ifndef NULL
+#define NULL 0
+#endif
 #endif FILE
 #include <sys/time.h>
 #ifdef OW_I18N
