diff --git a/lib-src/pop.c b/lib-src/pop.c
index c6deaf73a2c..42d302026ff 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -42,10 +42,6 @@ along with GNU Emacs. If not, see . */
#endif
#include
-#ifdef sun
-#include
-#endif /* sun */
-
#ifdef HESIOD
#include
/*
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 61f175b3c25..7e766bb7300 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -28,13 +28,7 @@ along with GNU Emacs. If not, see . */
#include
#include
-#if (defined __sun) && !(defined SUNOS41)
-#define SUNOS41
#include
-#undef SUNOS41
-#else
-#include
-#endif
#include
#include
#include