File xmoontool-22sep94-xorg7.patch of Package xmoontool

--- Makefile.orig
+++ Makefile
@@ -1,7 +1,7 @@
 CC=gcc
-CFLAGS=-m486 -O
-LIBS=-L$(XLIBDIR) -lXm -lXt -lX11 -lm -lSM -lICE -lXpm -lXext -lXp
-INSTALLBIN=$(DESTDIR)/usr/X11R6/bin
+CFLAGS += -D_GNU_SOURCE
+LIBS=-L$(XLIBDIR) -lXm -lXt -lX11 -lm
+INSTALLBIN=$(DESTDIR)/usr/bin
 INSTALLMAN=$(DESTDIR)/usr/share/man/man1
 
 xmoontool: xmoontool.c color.pix moon_icon
--- xmoontool.c.orig
+++ xmoontool.c
@@ -135,6 +135,8 @@
 */
 
 #include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
 #include <time.h>
 #include <X11/Intrinsic.h>
 #include <X11/StringDefs.h>