File fix-gcc15.patch of Package xsolitaire

diff --git a/Stack.c b/Stack.c
index 86afaab..5b7ed7b 100644
--- a/Stack.c
+++ b/Stack.c
@@ -7,6 +7,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>
 #include <X11/Xaw/Label.h>
@@ -963,7 +964,7 @@ StackInitialize(Widget request, Widget w, ArgList args, Cardinal *num_args)
 		sw->stack.card_depth[index] = -1;
 
 	/* Never have a pixmap for CARD_NONE */
-	sw->stack.card_pixmap[CARD_NONE] = NULL;
+	sw->stack.card_pixmap[CARD_NONE] = 0;
 
 	StackGetGC(sw);
 	if (XtWidth(sw) == 0 || XtHeight(sw) == 0) {
diff --git a/xsolitaire.c b/xsolitaire.c
index a23417f..406ee9b 100644
--- a/xsolitaire.c
+++ b/xsolitaire.c
@@ -3,7 +3,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <sys/time.h>
+#include <time.h>
 #include <X11/IntrinsicP.h>
 #include <X11/CompositeP.h>
 #include <X11/Intrinsic.h>
openSUSE Build Service is sponsored by