--- lib/libxview/frame/fm_impl.h.orig	Tue Jun 29 07:16:15 1993
+++ lib/libxview/frame/fm_impl.h	Sun May 23 14:16:14 2010
@@ -17,11 +17,16 @@ static char     sccsid[] = "@(#)fm_impl.h 20.64 93/06/
 #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
